P

Praveen Singh • 36.81K Points
Coach

Q. 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.
  • Correct Answer - Option(C)
  • Views: 49
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics