Well done!

You have completed Advanced Concepts in Object-Oriented Programming: Overriding, Inheritance, and Polymorphism Quiz!

Quiz Question 1 of 5

Given the following classes:

`class Animal: def sound(self): return "Generic sound"

class Dog(Animal): def sound(self): return "Bark"

class Cat(Animal): def sound(self): return "Meow"`

If we have a list of animals [Dog(), Cat()], and iterate through this list calling the sound() method on each object, which of the following statements best explains the outcome?

Choose the correct answer below:

Skip Quiz Review Instruction