Define and access Properties : Property : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Property »

 

Define and access Properties


class MyClass :
    name = "MyClass"


me = MyClass()
print me.name

me.name = "fred"
print me.name



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Property