Coding task · Python course · Module 3: Object-Oriented Programming

Method Overriding

Override the speak() method

Task

The Animal class has a speak() method. Override it in the Tiger(Animal) class so that it displays 'Rrrrr!'. Create a tiger and call speak()