Objects and Classes

Q1: Which of the following statements is correct when a class is inherited privately?

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

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

C Private members of the base class become private members of derived class.

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

ANS:B - Public members of the base class become private members of derived class.

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.