explain about the friend function
Answers
Answered by
1
Answer:
A friend function is a function that is specified outside a class but has the ability to access the class members' protected and private data. A friend can be a member's function, function template, or function, or a class or class template, in which case the entire class and all of its members are friends.
Answered by
0
Hey plz do brainlist
Attachments:
![](https://hi-static.z-dn.net/files/db8/42fb5df43cabf866a18bdf0e55adaeff.png)
Similar questions