Introduction to Super Built-in
Explore the Python super built-in function to understand how it returns proxy objects for parent or sibling classes. Learn its use in single and cooperative multiple inheritance, and discover how Method Resolution Order improves class method access, providing a clear understanding of super in Python 2 and 3.
We'll cover the following...
We'll cover the following...
The super built-in function was introduced way back in Python 2.2.
The super function will return a proxy object that will delegate method
calls to a parent or sibling class and returns an object that represents the parent class. If that was a little unclear, what it allows us to ...