Homework 4 Frequently Asked Questions
- Do the overloads for
+and-have to be able to handle the number being the first operand? Or can we assume the object will always be the first operand?
The way I wrote the description is indeed ambiguous. Therefore, you may assume that in the addition and subtraction equations, the object will always come first. That is, you need not account for swapping.
