Publicly derived class

  1. Explain how a private data of a base class can be accessed by a publicly derived class.
  2. Explain the merits and demerits of private derivation over the public derivation.
  3. What is a friend class? What are the access control a friend class has over the member function?
  4. What is a public derivation? Explain how a private member of a base class can be accessed by the public member function of the derived class through public inheritance?
WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X