An example of using a class data attribute (foo) : Property : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Property »

 

An example of using a class data attribute (foo)


class C(object):
     foo = 100

print C.foo
C.foo = C.foo + 1
print C.foo



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Class
» Property