R
Rolf Magnus
s said:class A {
private:
virtual void my_function();
}
class B : public A {
private:
void my_function();
}
Am I allowed to increase the visibility of my_function in classB by
declaring it a public function?
Yes.
Does the answer depend on how I inherit classA from classB (i.e.
public, protected, private)?
No.