Which of the following statements is TRUE, when a derived class D inherits a base class B using protected specifier?
- public members of B become protected members of D
- public members of B become public members of D
- public members of B become private members of D
- public members are not inherited
Answer:
Option a: public members of B become protected members of D
Explanation Here
0 Comments