Overloaded Binary Arithmetic Operators
Commonly overloaded operators are +, -, *, /, %
Example:
Point operator+(const Point& p1, const Point& p2)
Each coordinate of the sum is the sum of the corresponding two coordinates of the addends.
Previous slide
Next slide
Back to first slide
View graphic version