Q. Which of the following access specifiers makes a class member accessible only within the class and its friends?
β
Correct Answer: (B)
private
Explanation: In C++, 'private' members are only accessible within the class and its friends.