CS202   7- ‹#›
Member Function Friends
•We can declare a member function to be a friend by placing the following statement in the declaring class.
•The declaration of a friend member function takes the form of a member function prototype statement, preceded by the keyword friend.
•Member functions are declared using their class name followed by the scope resolution operator.
•The friend member function must have an object of the class to which it is a friend -- from a formal argument, as a local object in the member function's implementation, as a data member in the member function's class, or as a global object.
nclass declaring_class_name {
n  friend return_type class_name::function_name(arg_list);
n  };
n
n