Design Patterns · Junior · Question 64 of 75

What is polymorphism?

Explanation

Calling shape.area() works for circles and squares without checking which one it is.

Further reading

Problem with a question

Design Patterns · Junior · question 64

Test yourself

Take the Design Patterns · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz