blob: d463b45641bb05bd4b0eaa3ad0cd40e14a9c58c2 (
plain)
1
2
3
4
5
6
7
8
|
class Animal:
def eat(self, food):
print(f"Eating {food}")
class Human(Animal):
"""There is no need to override 'eat' it has the same signature as the implementation in Animal."""
|