Which one of the following is correct, when a class grants friend status to another class?
Show answerHide answer
Correct answer: (B) All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship.
Explanation
The member functions of a class which is given friend status by another class can access all private, protected and public members of the class granting friendship. Class friendship is neither reciprocal (commutative) nor transitive unless explicitly specified.