Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2016 Aug – II | Question 13
  • Last Updated : 10 Apr, 2018

If a function is friend of a class, which one of the following is wrong?
(A) A function can only be declared a friend by a class itself.
(B) Friend functions are not members of a class, they are associated with it.
(C) Friend functions are members of a class.
(D) It can have access to all members of the class, even private ones.


Answer: (C)

Explanation:
Friend of the class can be member of some other class but Friend functions are not the members of a particular class.
For more information on Friend function Refer:Friend class and function in C++
Option (C) is correct.

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :