Why Friend Function?
If we want to give a non-member function unlimited access to the members of a class we would declare such a function as a friend of that class. (ie friend functions are able to access private and protected data members) Friend property is not Inherited, not transitive and acts only in one direction Note: here you have to pass object as parameter in order to access the class data members.