virtual dispatch

Choosing which method body to run from the object's real type at run time, not from the declared type of the variable.

In more detail

Carrier c = new Overnight(); c.Quote(3m) runs Overnight's quote even though the compiler only saw a Carrier. It is the mechanism behind polymorphism.

Related terms

Taught in

References