Protected data
20.A program to demonstrate how a protected 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 21.The following program shows that an error is encountered as a result of an attempt to access the protected […]