Monday, August 10, 2009

overloading binary operations

We have just seen how to overload a unary operator.The same mechanism can be used to overload a binary operator.What is overloading binary operator and how it can be achieved can be seen in programme.
We should note the following features this function
1.It recieves only one complex type argument explicitly.
2.It returns a complex type value.
3.It is member functiion of complex.

No comments:

Post a Comment