The Increment and Decrement Operators
If the increment operator is overloaded, you should define both the prefix and postfix forms.
Whenever you have a choice, always invoke the prefix form of the increment operator as it is usually simpler.
Previous slide
Next slide
Back to first slide
View graphic version