which is just a function whose first argument is the instance on which it is called to operate
- 6. Object-Oriented Programming
- from Programming in Python 3: A Complete Introduction to the Python Language, Second Edition
- Publisher: Addison-Wesley Professional
- Released: November 2009
The first argument is always self in a method. That could be a decent interview question. Main difference between a function and a method. It is the self parameter making a method signature slightly different than a normal function.
Share this highlighthttp://www.safaribooksonline.com/a/programming-in-python/13211013/