Inheritance and Subclasses (Python)
OOPA-levelLesson packSubscription
About this resource
Understand how one class can inherit the attributes and methods of another, how to extend a parent class, and how to use super() to call the parent constructor.
11 slides.
Lesson outline
- Is-A or Has-A?
- The Is-A Relationship
- Writing a Subclass
- Dog Inherits From Animal: Live Demo
- UML: Inheritance Arrow
- `isinstance()` — Is this object a Dog?
- Python vs C#: Inheritance Syntax
- Coding Practice: Animal Hierarchy
- Lesson Summary
Unit bundleUnit 3A · Inheritance and Subclasses


