Once you attempt the question then PrepInsta explanation will be displayed.
in protected inheritance, the public and protected members become protected members in the derived class. In the private inheritance, everything is private. However, the derived class can never access the private members of the base class, The derived class can access the public and protected members in both cases.
Login/Signup to comment