Top "Double-dispatch" questions

In software engineering, double dispatch is a special form of multiple dispatch and a mechanism that dispatches a function call to different concrete functions depending on the runtime types of two objects involved in the call.

Difference betwen Visitor pattern & Double Dispatch

I am reading about visitor pattern, and it appears the same like Double Dispatch. Is there any difference between the …

design-patterns visitor double-dispatch
Understanding double dispatch C++

I try to understand how double dispatch works. I created an example where a monster and a warrior derived from …

c++ double-dispatch
How does double dispatch work in Visitor pattern?

I was looking into other questions related to the visitor pattern but couldn't understand the implementation of double dispatch in …

java design-patterns visitor-pattern double-dispatch
What is Single and Double Dispatch?

i have wrote the visitor pattern as follow but i don't understand what is single and double dispatch. AFAIK, single …

c++ design-patterns visitor-pattern double-dispatch
What's the difference between Polymorphism and Multiple Dispatch?

...or are they the same thing? I notice that each has its own Wikipedia entry: Polymorphism, Multiple Dispatch, but I'm …

oop polymorphism multiple-dispatch double-dispatch
Polymorphically Dispatching in Java

In the following, I want EventHandler to handle EventA one way, EventB another way, and any other Events (EventC, EventD) …

java double-dispatch