An overloaded + operator takes a class object and a double as operands. For it to be commutative (i.e., a + b and b + a both work):