Dynamic Method Dispatch:-
This is the mechanism by which a call to an overriden function is resolved at run time.
This is also called Runtime polymorphism.
A superclass refference variable can refer to a subclass object.
When an overriden method is called through a superclass refference , based upon the type of object being reffered to, java determines which version of that method to execute.
0 Comments