This presentation includes 7 programs, in which 5 are basic arithmatic (binary) operator overloading and 2 are the unary operators( increment and decrement) overloading.
1. Arithmetic operators
overloaded using member
function of a class must have
one argument as object of
class.
Arithmetic operators
overloaded using friend
function of a class must have
two argument.
Editor's Notes
Here the contents of object s and t are added thus + operator is overloaded
Here b is an integer type variable it is deducted from a which is held by object thus – operator is overloaded.