Results 1 to 1 of 1
Thread: Dynamic Method Dispatch
- 09-15-2009, 05:18 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 4
- Rep Power
- 0
Dynamic Method Dispatch
What exactly and practically Dynamic Binding means..what exactly is Run-time Compliling?...Please tell the Dynamic binding in the below code
Java Code:class A{ void Aone(){ System.out.println("Hey"); } } class B extends A { void Aone(){ System.out.println("heello"); } } class C extends A { void Aone(){ System.out.println("hai"); } } class second{ public static void main(String args[]){ B b= new B(); C c=new C(); A r=new B(); r=b; r.Aone(); r=c; r.Aone(); } }
Similar Threads
-
incompatible types...What is "Dispatch" ?
By ollyworks in forum Java AppletsReplies: 1Last Post: 09-10-2009, 03:03 AM -
Dynamic GUI
By ike2u in forum New To JavaReplies: 4Last Post: 08-08-2009, 02:50 AM -
Error: Exception during event dispatch!
By Javid in forum AWT / SwingReplies: 1Last Post: 08-02-2008, 01:20 PM -
Dynamic method calling
By Java Tip in forum Java TipReplies: 0Last Post: 02-15-2008, 08:46 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks