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:
“Well, I had gone and spoiled it again, made another mistake. A double one in fact. There were plenty of ways to get rid of that officer by some simple and plausible device, but no, I must pick out a picturesque one; it is the crying defect of my character.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)