+ 2
A member function can only be invoked by objects of a particular class where as a friend function does not belong to the class and it does not require the class object. Both of them access other members of the class. Friend functions are created if some outside function requires access to the internal (private and protected) members of the class.