File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dual dispatch at 4am

 
nate saider
Greenhorn
Posts: 17
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic