Subclass-only methods
Beginner
Python OOP Inheritance
Created by Pavel
· 07.03.2026 at 19:57 UTC
· 5 completed
You inherit everything the parent exposes, then you teach the child something the parent never knew how to do. That is the everyday meaning of extending a class: shared core, plus behaviour that only makes sense for the specialised type.
The catch is that students still interact through the same mental model—report.generate() stays familiar—while show_plot() appears only where visual tooling exists. If you forget that new methods live only on the subclass, you will try to call them from a plain base reference and get an attribute error, even when inheritance is otherwise correct.
University approvals: 0
Tasks
Card Info
- Topic: Python OOP Inheritance
- Difficulty: Beginner
- Completed: 5 users
Creator
Pavel