# include using namespace std; class A { public: virtual void f() { cout << \"A::f()\" << endl; } }; class B:pu
Pretty much like in Java, in C++ you can increase the visibility of methods but not decrease it.