• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dual dispatch at 4am

 
nate saider
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone care to explain what dual dispatch is or give an example? (i.e. multimethods in Java)
From what I understand you can create an independent object, then send a method containing varying arg types. Then polymorphism magically selects an object/class with that set of arg types and responds accordingly? And that demonstrates dual dispatch.
Does that sound about right?
Examples would help (simple examples!)
Thanks.
Nate
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic