what is friend function in C++
Answers
Answered by
0
Answer:
c++ 3/4 C-section different
Answered by
3
Advertisements. A friend function of a class is defined outside that class' scope but it has the right to access all private and protected members of the class. Even though the prototypes for friend functions appear in the class definition, friends are not member functions.
Similar questions