Methods in class : Method : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Method »

 

Methods in class


class MyClass(object):  
     def printFoo(self):     
          print 'You invoked printFoo()!'

myObj = MyClass()   
myObj.printFoo()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Class
» Method