How does visibility mode control the access of members in derived class?
Answers
Answered by
4
The visibility modes basically control the access specifier to be for inheritable members of base class, in the derived class. Public visibility mode: The public derivation means that the derived class can access the public and protected members of the base class but not the private members of the base class.
Similar questions