• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between dyanamic dispatch and method overriding  RSS feed

 
srilavanyaa subramanian
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between dyanamic dispatch and method overriding in java
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These two concepts are related, but they aren't alternatives to one another, so one can't really answer the question "what's the difference?".

Anyway, why not demonstrate some effort by going and looking up the two terms in Wikipedia, FOLDOC etc., then asking some specific questions if you still have any?
 
Animesh Saxena
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dynamic Dispatch

Deciding at run time which method to call.


Method Overriding

While calling overridden methods Dynamic Dispatch is used.

So you can say Method Overriding is the concept and Dynamic Dispatch is implementation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!