Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

private instance attribute python

# Square Class: Define a Square with private instance
class Square:
	def __init__(self, size=0):
      # initialise variables
      self.__size = size
 
PREVIOUS NEXT
Tagged: #private #instance #attribute #python
ADD COMMENT
Topic
Name
9+3 =