16.A program to demonstrate how a private data of a base class is accessed by the public member function of the derived class through friend class declaration. The derived class has been inherited via public inheritance.
17.A program to demonstrate how a private data of a base class is accessed by the public member function of the derived class through friend class declaration. The derived class has been inherited via private inheritance.