I get a compiler error \"function does not take 0 arguments\" when compiling the following code.
class A { public: int Foo() { return 1;
Add this line:
using A::Foo;
in class B (public part) and it will work.
B
In this case Foo from B hides Foo from A. One of the C++ strange behaviors.
Foo
A