In C++, a friend function of a class can:
Show answerHide answer
Correct answer: (D) Access its private and protected members
Explanation
Friendship grants access to private/protected members.
Correct answer: (D) Access its private and protected members
Explanation
Friendship grants access to private/protected members.
This is question 135 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.