C++ inheritance and name hiding [duplicate]
问题 This question already has answers here : Why does an overridden function in the derived class hide other overloads of the base class? (4 answers) Closed 2 years ago . I know this is not the first question on this subject, but all the other related questions (and answers) I read were slightly out of the point, according to me. Take the code #include <iostream> using namespace std ; class Base { public: void methodA() { cout << "Base.methodA()" << endl ;} }; class Derived : public Base { public