🗒 Cheat Sheet← Lesson
BitWithBite
Python Worksheet

🐍 Inheritance

Chapter: Python · Level ★☆☆ · Time: 30 min
SCORE___ / 20
NameClassDate
After this worksheet you can
Extend a parent classOverride methodsUse super()Recognise is-a relationships
📚 Quick Recap

🎯 What you'll learn: How child classes inherit from parents, how to use super() to extend (not replace) parent behaviour, method overriding, multiple inheritance and the MRO, the isinstance() / issubclass() checks, Abstract Base Classes with ABC, and how polymorphism lets you write one function that works for many types.

🧠 Section A · Concept Check ● BEGINNER 4 × 1 = 4

1class Cat(Animal) means Cat:
2Redefining a parent method is:
3Call the parent's method with:
4Inheritance models a(n):

🧮 Section B · Problem Solving ● INTERMEDIATE 2 + 3×3 = 11

5class Dog(): inherits from Animal.
6Redefining a method in the child is .
7Make class Cat inherit from Animal.
8Override speak() in Cat to print 'Meow'.
9Call Animal's __init__ from Cat.

🚀 Section C · Challenge ● CHALLENGE 5

10Why use inheritance?
💭 Reflection — the most useful thing I learned:
A ___/4   B ___/11   C ___/5   Total ___/20 Teacher's Signature Parent's Signature
✂ answer key — fold or cut before handing out

1-B   2-B   3-C   4-B  |  5 Animal   6 overriding   7 = class Cat(Animal): pass   8 = def speak(self): print('Meow')   9 = super().__init__()  |  10 = To reuse shared behaviour and specialise it in child classes

📄 Need offline practice?Download the print-ready PDF or open the one-page cheat sheet.
⬇ Worksheet PDF 🗒 Cheat Sheet