Skip to main content
Loading page…
Python Mastery
Chapter 12
Lesson 3 of 4
Inheritance & super()
Contents
Notes
Tutor
Concept
Subclassing: Is-A Relationships
Loading activity…
Previous
1 / 8
Continue
Contents
Notes
Discussion
Tutor
28 min
8 activities
0 of 8 done
In this lesson
1
Subclassing: Is-A Relationships
2
Overriding Methods and super()
3
Method Resolution Order (MRO)
4
super().__init__ Gotcha
5
When NOT to Inherit
6
Build an Employee Hierarchy
7
Correct super().__init__ Order
8
Describe a Bad Inheritance Decision
Objectives
Create a subclass that extends a parent class
Override a parent method and call the parent's version with super()
Explain Python's method resolution order (MRO) for single inheritance
Identify when inheritance is appropriate vs when to prefer composition
Chapter 12 · Object-Oriented Programming
Classes & Instances
Attributes, Methods & Encapsulation
Inheritance & super()
Designing with Objects
Previous: Attributes, Methods & Encapsulation
Next: Designing with Objects