C++ MQCs with Explanation (CHAPTER 8: INHERITANCE : EXTENDING CLASSES

A class D is privately derived from class B. An object of D in the main function can access

  1. public members of B
  2. private members of D
  3. protected members of B
  4. public members of D



Answer: 
Option a:public members of B

Explanation Here

Post a Comment

0 Comments