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 

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

1 Expert Approved Answer
Step: 1 Unlock

AClass B will inherit all the data members of class A and make them private access If we examine the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!