CS202   7- ‹#›
Non-Member Friend Functions
•A non-member function can be declared a friend by placing the following statement in the declaring class. The declaration of a friend function takes the form of a function prototype statement, preceded by the keyword friend.
•We saw this type of friend with operator overloading.
•Typically, friend functions are designed with formal arguments, where clients pass either an object, the address of an object, or a reference to an object as an argument.
•
nclass declaring_class_name {
n  friend return_type function_name(arg_list);
n};
•