Question:You want the data member of a class to be accessed only by itself and by the class derived from it. Which access specifier will you give to the data member? 

A Public 

B Private 

C Protected 

D Friend 

E Either Public or Friend 

+ Answer
+ Report
Total Preview: 661

Copyright © 2024. Powered by Intellect Software Ltd