When base class is publicly inherited by a derived class, the following things happens:
- Public members of Base class become ‘public members’ of the derived class.
- They are accessible to the objects of the derived class.
Ex: class marks : public student