Well done!

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

Quiz Question 1 of 5

In a polymorphic context, consider the following code snippet:

`class Shape: def area(self): return "Calculating area"

class Circle(Shape): def area(self): return "Calculating area of a circle"

class Square(Shape): def area(self): return "Calculating area of a square"

shapes = [Circle(), Square(), Shape()] result = [shape.area() for shape in shapes]`

Which of the following statements is true regarding the result of this list comprehension?

Choose the correct answer below:

Skip Quiz Review Instruction