New course! Every coder should learn Generative AI!
Try a free lesson+ 2
What is an friend function
2 Answers
+ 5
@gupta
just like a friend
+ 4
a friend function is a function that have the right to access all the private and potected members of the class. Friend function is not a member function.