Question · Python course · Module 3: Object-Oriented Programming
Inheritance
How do you define a Cat class that inherits from Animal?
Answer options
- class Cat(Animal):
- class Cat extends Animal:
- class Cat inherits Animal:
- class Cat -> Animal:
You can check the correct answer by solving this task in the CodeWorlds game.