This post continues the analysis of the Python OOP implementation started with this post, which I recommend reading before taking on this new one.
This second post discusses the following OOP features in Python:
- Classes and instances (again)
- Object creation
This post refers to the internals of Python 2.x - please note that Python 3.x changes (improves!) some of the features shown here. You can find the updated version here.
Good Morning, Polymorphism
The term polymorphism, in the OOP lingo, refers to the ability of an object to adapt the code to the type of the data it is processing.
Polymorphism has two major applications in an OOP language. The first is that an object may provide different implementations of one of its methods depending on the type of ... more