class Dog: def __init__(self, name, age, breed): self.name = name self.age = age self.breed = breed def make_sound(self): print("The dog barks.") class Cat: def __init__(self, name, age, color): self.name = name self.age = age self.color = color def make_sound(self): print("The cat meows.") def make_animal_sound(animal): animal.make_sound() dog1 = Dog("Buddy", 3, "Labrador") cat1 = Cat("Fluffy", 2, "White") make_animal_sound(dog1) # prints "The dog barks." make_animal_sound(cat1) # prints "The cat meows."