In the main function, if the object defined by the derived class cannot directly access the member function of the base class, what kind of inheritance should be used? ? Or what more tricks? Please enlighten me!
Or use private inheritance, but this way, the behavior can not see the connection between the derived class and the base class. It's better to use a combination.