About 8,420,000 results
Open links in new tab
  1. What is Single and Double Dispatch? - Stack Overflow

    Jul 16, 2010 · In short, single dispatch is when a method is polymorphic on the type of one parameter (including the implicit this). Double dispatch is polymorphism on two parameters. …

  2. Understanding double dispatch C++ - Stack Overflow

    Sep 25, 2012 · I try to understand how double dispatch works. I created an example where a monster and a warrior derived from the abstract class Creature could fight. The class Creature …

  3. design patterns - Double dispatch in C#? - Stack Overflow

    Sep 3, 2008 · Double dispatch is a special case of multiple dispatch. When you call a virtual method on an object, that's considered single-dispatch because which actual method is called …

  4. How does double dispatch work in Visitor pattern? - Stack Overflow

    Jul 20, 2011 · I was looking into other questions related to the visitor pattern but couldn't understand the implementation of double dispatch in visitor pattern. Please refer to the link …

  5. Difference betwen Visitor pattern & Double Dispatch

    Mar 22, 2012 · Double dispatch is a technical problem, which can, depending on the language, be solved in different manners—some languages support double dispatch directly. The visitor …

  6. Multiple dispatch in C++ - Stack Overflow

    Aug 7, 2010 · In double dispatch the function executed depends on the object type and a parameter. In the following example, the function Area() is invoked using single dispatch, and …

  7. How to use a Double Dispatch with overload in JAVA?

    Jan 14, 2018 · The call of the paint method is a single dispatch because there is only one concrete subtype which determines the performed behaviour at runtime. DOUBLE DISPATCH: …

  8. Double dispatch in Java example - Stack Overflow

    Oct 31, 2012 · I was reading the Wikipedia article on DD and jumped over to the "Double dispatch in Java and an example" link given at the end. The description of the following Serializable …

  9. What's the difference between Polymorphism and Multiple …

    Sep 24, 2008 · Single dispatch also allows for a more limited kind of polymorphism (using the same method name for objects that implement the same interface or inherit the same base …

  10. What is - Single and Multiple Dispatch (in relation to .NET)?

    Apr 14, 2016 · This then is single dispatch, the single point of choice is the type system associated with b. Multiple Dispatch would, at runtime, allow the runtime types of b, c and d to …