xxxxxxxxxx
We require friend functions whenever we have to
access the private or protected members of a class. This is
only the case when we do not want to use the objects of that
class to access these private or protected members.
xxxxxxxxxx
class className {
..
friend returnType functionName(arguments);
..
}