Inheritance
Inheritance
Learning Outcomes
- How to create subclasses
- Learn about the method resolution order
- What
super()
function is and how to use it - Explain the usefulness of
isinstance()
andissubclass()
functions
Theory
Watch this video on class inheritance:
Knowledge Check
- What is the syntax for creating subclasses?
- How do subclasses inherit properties and methods?
- What is an efficient way to create a subclass that uses properties from the parent class?