Current location - Quotes Website - Personality signature - The difference between overloading, covering and hiding class member functions
The difference between overloading, covering and hiding class member functions
The characteristics of overloaded member functions (1) have the same scope (in the same class);

(2) The function names are the same; (3) Different parameters; (4) Virtual keywords are dispensable. Override refers to the rewriting of derived class functions.

Base class function, which is characterized by (1) different ranges (

In the derived class and the base class respectively); (2) The function names are the same; (3) ...