We make a non-member function a friend of a class when we want it to access that class\'s private members. This gives it the same access rights as a static member function w
A static function is a function that does not have access to this.
this
A friend function is a function that can access private members of the class.