Best way to call hidden base class method [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 6 years ago . In the following code, "d.Foo()" throws a compiler error claiming that function Foo() does not take 0 arguments. Yet a 0-argument function with that name exists in the base class. The line "d.Base::Foo()" is acceptable. I have a vague memory of learning that the use of a function name in a derived class hides all functions of