


the process of binding appropriate version of derived class (which is derived from base class) with base class object is called dynamic method binding od dynamic method dispatch
example: class Flower { void which() { System.out.println("A Beautiful flower."); } } class Rose extends Flower { void which() { System.out.println("Rose"); } } class Lotus extends Flower { void which() { System.out.println("Lotus."); } } class Test {
public static void main(String[] args) { Flower ref1 = new Flower(); Flower ref2 = new Rose(); Flower ref3 = new Lotus(); ref1.which(); ref2.which(); ref3.which(); } }