Q. Which principle allows method overriding?

A
Encapsulation
B
Inheritance
C
Polymorphism
D
Abstraction
Solution:

Polymorphism allows a subclass to override a parent method.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!