Question discussion

A friend function of a C++ class can access its private members, even though it is:

163Medium DSSSB TGT Computer Science 0 replies
A friend function of a C++ class can access its private members, even though it is:
  • AA member function of that class
  • BNot a member function of that class
  • CAlways declared static
  • DAutomatically inherited by derived classes
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!