Sunday, February 19, 2012

Python Classes

Each Python Class has a constructor method which is responsible for creating an instance of the object when the class is called. The constructor method is written just after the class is declared. The constructor method is called using the __init___ command. Python actually calls the method and passes the user-supplied name to the method as a parameter. The YouTube video below gives a good introduction to Python Classes.




No comments: