CS202 6- ‹#›
As Non-members
nOverloading operators as non-member functions is like defining regular C++ functions.
nSince they are not part of a class' definition, they can only access the public members. Because of this, non-member overloaded operators are often declared to be friends of the class.
nWhen we overload operators as non-member functions, all operands must be explicitly specified as formal arguments.
nFor binary operators, either the first or the second must be an object of a class; the other operand can be any type.