Method Overriding in
Java
is the best example for Runtime Polymorphism. In this type
of Polymorphism the Parent class reference can hold
object of Parent class or any sub class (Child class) of Parent.
This technique is
called as Dynamic Method Dispatch.
Dynamic Method Dispatch is a technique in which the overridden method to call is resolved at the run-time rather than at compile time. In this technique we will assigning the Child object to the Parent class reference.
Our Experienced faculty teach the students Java efficiently in Bopal and Satellite in Ahmedabad.
To enrol at TCCI
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/
Dynamic Method Dispatch is a technique in which the overridden method to call is resolved at the run-time rather than at compile time. In this technique we will assigning the Child object to the Parent class reference.
Our Experienced faculty teach the students Java efficiently in Bopal and Satellite in Ahmedabad.
To enrol at TCCI
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/
No comments:
Post a Comment