1 Answers
The following things happens when the base class is privately inherited by a derived class:
- Public members of base class become ‘private members’ of the derived class.
- Public members of the base class can only be accessed by the member functions of the derived class.
- They are inaccessible to the objects of the derived class.
Ex: class marks : private student