Use of friend function in c++ with example
Answers
Answered by
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.
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