First page
Back
Continue
Last page
Graphics
operator
op
If you had an
add
member function and two objects
o1
and
o2
, you might be able to state:
o1 = add(o1,o2);
But, wouldn't it look a lot more readable if you could:
o1 = o1 + o2;
That's what overloading operators is all about!