Vidyalelo
C++ Programming · Q351

C++ miscellaneous

Programming · C++ Programming · question 351

Q351

Which access specifier is used where one wants data members to be accessed by other classes but not from outside objects?

A.
private
B.
protected
Answer
C.
public
D.
both protected and public

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board