Home » Interview » Technology

Explain Overriding Polymorphism.?

Correct Answer: Overriding means changing behavior of methods of base class in derive class by overriding the base class methods If class A is a base class with method ’calculate’ and class B inherits class A, thus derives method ’calculate’ of class A The behavior of ’calculate’ in class B can be changed by overriding it

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion