## 17.3 Unary Arithmetic Operators

- `+ - * &` have both binary and unary forms
- To overload unary form, reduce the number of parameters by one
- E.g.:

  >     Fraction operator-(const Fraction& value)
  >     {
  >        Fraction result(-value.numerator(), value.denominator());
  >        return result;
  >     }

- A unary operator defined as a member function takes no arguments (sect. 17.6)

prev |top |next