Q. Which of the following statements is correct when a class is inherited publicly? (Solved)

1. Public members of the base class become protected members of derived class.

2. Public members of the base class become private members of derived class.

3. Private members of the base class become protected members of derived class.

4. Public members of the base class become public members of derived class

  • d. Public members of the base class become public members of derived class
Subscribe Now

Get All Updates & News