← Quiz: Polymorphism: all 10 questions
Quiz: Polymorphism · Question 1 of 10
Method overriding is an example of:
Method overriding is an example of:
- A.Compile-time polymorphism
- B.Runtime polymorphism
- C.Encapsulation
- D.Composition
Answer & explanation
Correct answer: Runtime polymorphism
The JVM/interpreter chooses the overridden method based on the actual object at runtime.
Can you get the rest right without peeking?
Take the timed Quiz: Polymorphism quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →