what is friend function?
Answers
Answered by
0
the function of friends.....
Answered by
2
In object-oriented programming, a friend function, that is a "friend" of a given class, is a function that is given the same access as methods to private and protected data. A friend function is declared by the class that is granting access, so friend functions are part of the class interface, like methods.
Attachments:
Similar questions
Computer Science,
7 months ago
CBSE BOARD XII,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago
Physics,
1 year ago