java dynamic polymorphism (manohar academy)

preview_player
Показать описание
welcome to "manohar academy".

In this lesson we learn about dynamic polymorphism.

In java reference variables are polymorphic. A reference variable can point to an object of its own type or objects of its sub class type.

When a super class reference variable refers to the subclass object, and if the super class method is overridden by subclass, then the method that will be invoked will be decided at run time and it will depend on the actual type of the object.

This is refer to as dynamic binding, dynamic method dispatch and dynamic polymorphism.

Рекомендации по теме