Virtual member functions

Polymorphism also exists when a derived class customizes the behavior of the base class to meet the requirements of the derived class.

A C++ base class uses the virtual member function declaration to specify that overridden member functions in derived classes have polymorphic behavior with respect to that method.