Python Object Oriented Programming (OOP) for Beginners
1class Cat(Pet): 2 def __init__(self, name, age, color): 3 super().__init__(name, age) 4 self.color = color 5 6 def show(self): 7 print(f"I am {self.name}, I am {self.age} years old and I am {self.color}")