This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes dual dispatch at 4am Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dual dispatch at 4am" Watch "dual dispatch at 4am" New topic

dual dispatch at 4am

nate saider

Joined: Jun 24, 2002
Posts: 17
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!)
It is sorta covered in the JavaRanch Style Guide.
subject: dual dispatch at 4am
Similar Threads
Dynamic dispatch
Polymorphism and Method Signatures
Dynamic dispatch??????
Desing issue, may be with Visitor pattern
Event Dispatch Thread