
Defining a Function with the ‘friend’ in a .cpp
Question: With the following: friend int operator == (const cs303Point& point0, const cs303Point& point1); in my .h file, how should the first line of the function definition look in the .cpp file? Answer: First of all, note that operator == returns a bool result rather than int. Therefore, it’s advisable