+ 1
How to make a function friend can anyone explain with code ?
illustrate with a private function
3 Answers
+ 1
welcome
+ 2
u can refer this link which will helpful for u
https://www.tutorialspoint.com/cplusplus/cpp_friend_functions.htm
if u don't understand then let me know
0
thanks a lot