21.8 — Overloading the increment and decrement operators
Overloading the increment (++) and decrement (–) operators is pretty straightforward, with one small exception. There are actually two versions of the increment and decrement operators: a prefix increment and decrement (e.g. ++x; –y;) and a postfix increment and decrement (e.g. x++; y–;). Because the increment and decrement operators are …