virtual function
A member function a derived class can replace, where the version that runs is chosen by the object's real type while the program runs.
A virtual member function is dispatched on the dynamic type of the object; calling it through a pointer or reference to a base class invokes the most-derived override.
See also