class Animal:
def __init__(self, name):
self.name = name
def describe(self):
return f"{self.name} is an animal."
class Cat(Animal):
def meow(self):
return f"{self.name} says meow."
c = Cat("Milo")
print(c.describe()) # inherited: Milo is an animal.
print(c.meow()) # new: Milo says meow.