Which one of the following is correct, when a class grants friend status to another class?
(A) The member functions of the class generating friendship can access the members of the friend class.
(B) All member functions of the class granted friendship have unrestricted access to the
members of the class granting the friendship.
(C) Class friendship is reciprocal to each other.
(D) There is no such concept.
Answer: (B)
Explanation:
- When a class grants friend status to another class then all member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship.
- The member functions of the class generating friendship can access the members of the friend class.Incorrect statement.
- Class friendship is not reciprocal to each other.
So, option (B) is correct.
Quiz of this Question
Recommended Posts:
- UGC-NET | UGC NET CS 2016 July – II | Question 11
- UGC-NET | UGC NET CS 2016 July – II | Question 12
- UGC-NET | UGC NET CS 2016 July – III | Question 45
- UGC-NET | UGC NET CS 2016 July – III | Question 50
- UGC-NET | UGC NET CS 2016 July – III | Question 52
- UGC-NET | UGC NET CS 2016 July – III | Question 53
- UGC-NET | UGC NET CS 2016 July – III | Question 63
- UGC-NET | UGC NET CS 2016 July – III | Question 64
- UGC-NET | UGC NET CS 2016 July – III | Question 65
- UGC-NET | UGC NET CS 2016 July – II | Question 14
- UGC-NET | UGC NET CS 2016 July – III | Question 16
- UGC-NET | UGC NET CS 2016 July – III | Question 24
- UGC-NET | UGC NET CS 2016 July – III | Question 25
- UGC-NET | UGC NET CS 2016 July – III | Question 43
- UGC-NET | UGC NET CS 2016 July – III | Question 44
- UGC-NET | UGC NET CS 2016 July – II | Question 1
- UGC-NET | UGC NET CS 2016 July – II | Question 2
- UGC-NET | UGC NET CS 2016 July – II | Question 3
- UGC-NET | UGC NET CS 2016 July – II | Question 4
- UGC-NET | UGC NET CS 2016 July – II | Question 5

