Logo
Search
Search
View menu

Runtime Polymorphism

Presentations | English

Runtime polymorphism works in Java by method overriding. Method overriding should be implemented when objects have the same method name and arguments and type as of their parent class but with different functionality. When a child class has that type of method in it, it is called overridden method. For runtime polymorphism in Java the annotation @Override may be used to point out which method is wanted to override specifically. It is called as Run time polymorphism because the decision of overriding child class through its parent type happens during runtime by Java virtual machine after the compilation of code. It is also referred to as “Dynamic method dispatch” and “Late binding”. You can familiarize yourself with more examples of runtime polymorphism using the presentation. Please see.

Picture of the product
Lumens

Free

PPTX (26 Slides)

Runtime Polymorphism

Presentations | English