Answered Questions

  • Dynamic method Dispatch

    What is dynamic method dispatch?

    zeeshan

    • Jun 12th, 2012

    Hi Friend, In dynamic method dispatch,super class refers to subclass object and implements method overriding. "java Example: class Flower { void which() { System.out.println("A ...

    saroj kumar

    • Apr 9th, 2012

    Hi, The process of assigning sub class object to super class reference variable is called as Dynamic Dispatch. Consider the following classes,

    Code
    1. class X{}
    2. class Y extends X{}
    3.  
    4. X obj1=new Y();  -> Dynamic Dispatch