Consider the code segment class A { private : int a ; public : int b ; protected : int c ; }; class B : A { }; class C : public B { }; The derived class C would contain the members
- a, b and c
- b and c only
- b only
- none
Answer:
Option b: b and c only
Explanation Here
0 Comments