CodePudding user response:
Overloading should not polymorphic, overloading is determined at compile time the function of access address, c + + polymorphism is implemented through the virtual function, virtual function allows subclasses redefine member function, and the practice of subclasses redefine the parent class is called cover (override), otherwise known as rewriting, must not pure virtual function, virtual function can be achieved polymorphism