1.

What is the difference between public and private access specifier?

Answer»

In public access mode, protected members of base class remain protected in a derived class. In private access mode, protected members of a base class become private members in a derived class. And the private members of a base class cannot be inherited in both the access mode.



Discussion

No Comment Found