Inheritance
A class can inherit from another and reuse its code. The child can add or override methods.
Examplepython
Quick check
What does `class Dog(Animal)` mean?
Your turn: write the code
Cat should inherit from Animal and override speak to return Tom says meow.
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.