Polymorphism definition : related different classes generated by inheritance, send the same message to their objects, and different objects will produce different behaviors (ie methods) after receiving them.
A member function declared as vitual in a base class and redefined in one or more derived classes,
The usage format is: vitual function return type function name (parameter table) {function body};
To achieve polymorphism, access the overriding member function of the same name in the derived class through the base class pointer or reference to the derived class.