Question 12Asked in UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)

Which of the following is not a member of class?

  1. AStatic function
  2. BFriend function
  3. CConst function
  4. DVirtual function
Show answerHide answer

Correct answer: (B) Friend function

Explanation

A friend function of a class is a non-member function that is given the same access as member methods to the class's private and protected data. It is declared inside the class that grants access, but it is not a member of the class.

From UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions)

This is question 12 of UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions). 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.