← Quiz: Inheritance and Polymorphism: all 10 questions
Quiz: Inheritance and Polymorphism · Question 3 of 10
Overriding is an example of:
Overriding is an example of:
- A.Compile-time polymorphism
- B.Runtime polymorphism
- C.Encapsulation
- D.Abstraction only
Answer & explanation
Correct answer: Runtime polymorphism
The JVM decides which overridden method to run at runtime.
Can you get the rest right without peeking?
Take the timed Quiz: Inheritance and Polymorphism quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →