Science, asked by sonamchauhan4647, 1 year ago

Use of friend function in c++ with example

Answers

Answered by adarshhoax
2
I am a bluej student I maybe wrong but
Friend Functions. A friend functionof 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 forfriend functions appear in the class definition, friends are not memberfunctions.
Similar questions