Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

instance variable in python

class Car:    wheels = 4    # <- Class variable    def __init__(self, name):        self.name = name    # <- Instance variable
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #instance #variable #python
ADD COMMENT
Topic
Name
8+5 =