a way in c++ to hide a specific function
i have an inheritance struct A : public B , i want to hide individual functions from B, is this possible? i know the opposite is possible using using BMethod in the A declaration. cheers The using keyword can be used to change visibility struct A { void method1(); }; struct B: public A { void method2(); private: using A::method1; }; If you want to selectively hide functions from B it does not make much sense to use public inheritance in the first place. Use private inheritance & selectively bring methods from B into the scope of A: struct B{ void method1(){}; void method2(){}; }; struct A :