Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Multiple dispatch
or multimethods or function overloading is the feature of some
object-oriented programming languages in which a function or method can
be dynamically dispatched based on the run time type of more than one of
its arguments. This is an extension of single dispatch polymorphism
where a method call is dynamically dispatched based on the actual
derived type of the object on which the method has been called. Multiple
dispatch generalizes the dynamic dispatching to work with a combination
of two or more objects. Developers of computer software typically
organize source code into named blocks variously called subroutines,
procedures, subprograms, functions, or methods. The code in the function
is executed by calling it - executing a piece of code that references
its name. This transfers control temporarily to the called function;
when the function's execution has completed, control is typically
transferred back to the instruction in the caller that follows the
reference.