Question: consider the following code snippet: class A public: class B: private Al O a. class B will inherit all the data members of class
consider the following code snippet: class A public: class B: private Al O a. class B will inherit all the data members of class A and make them private access O b. class A will inherit all the data members of class B and make them private access O c class B will inherit only the private data members of class A O d. class A will inherit only the private data members of class B
Step by Step Solution
3.60 Rating (171 Votes )
There are 3 Steps involved in it
AClass B will inherit all the data members of class A and make them private access If we examine the ... View full answer
Get step-by-step solutions from verified subject matter experts
