Double Dispatch

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. In most object-oriented systems, the concrete function that is called from a function call in the code depends on the dynamic type of a single object and therefore they are known as single dispatch calls, or simply virtual function calls.

Read more about Double Dispatch:  Examples, A Common Idiom, Double Dispatch Is More Than Function Overloading

Famous quotes containing the word double:

    “O, my offense is rank, it smells to heaven;
    It hath the primal eldest curse upon ‘t,
    A brother’s murder. Pray can I not,
    Though inclination be as sharp as will;
    My stronger guilt defeats my strong intent,
    And like a man to double business bound
    I stand in pause where I shall first begin,
    And both neglect. What if this cursed hand
    Were thicker than itself with brother’s blood,
    Is there not rain enough in the sweet heavens
    To wash it white as snow?”
    —William Shakespeare (1564–1616)