EECS 211
How to read Chapter 11

Chapter 11 is about operator overloading. Operator overloading is especially useful for "numeric" classes, such as Rational and Complex. It's much nicer to be able to use the various arithmetic and relational operators than to have to write out member function calls. However, defining such operators can get tricky, particularly for the prefix and postfix increment and decrement operators.

For most other user-defined classes, the main operators you need to overload are operator<< and possibly operator>> (Section 11.5), and the assignment operator (page 592).

A few points about operator overloading I want to emphasize: