Inheritance
overriding, super(), MRO, and composition
30 min · interactive lesson with runnable code and 5 graded exercises.
What you'll be able to do
- Override a parent method in a child class
- Extend parent behavior with super()
- Explain what the MRO is and how super() follows it
- Choose composition over inheritance when it fits better
The full lesson is free with an account.