class A { public: void foo(void) {} }; class B : public A { public: using A::foo; // <----------------- void foo(int x) {} // overloading in child class };