C + + overlay overload concealment is a three often confusing concept
Here we summarize briefly below:
1. Overloaded conditions (compile-time polymorphism)
A. In the same class
B. The function name is the same, the parameters are different (the return value cannot be an overloaded condition)
C. Independent of whether the function is a virtual function
2. Conditions of coverage (run-time polymorphism)
A. In different classes, it is often an inheritance system
B. Base class The function is a virtual function
C. Derived class function names are the same, parameters are the same
3. Hidden conditions
A. In different classes, it is often an inheritance system
B.1 If the function name in the inheriting class is the same, the arguments are different, regardless of whether the function is a virtual function in the base class, hidden
B.2 if the function name in the inheriting class is the same, the parameter is the same, and the function is hidden only if it is not a virtual function in the base class.
About overrides in C + +, overloading, hiding a little note