Design Patterns · Junior · Question 64 of 75
What is polymorphism?
- ✓Correct answer: Working with different types through a common interface, each providing its own behavior
- 2A function with many parameters
- 3Changing a variable's type at runtime
Explanation
Calling shape.area() works for circles and squares without checking which one it is.