Tuesday, July 14, 2009

Operator Overloading in C++?

Explain in Details Operator Overloading in C++ with Web reference.

Operator Overloading in C++?
go through the operator overloading section in stroustoup's C++ book and do yourself an favour by coding few overloading example
Reply:http://www.cs.caltech.edu/courses/cs11/m...
Reply:Operator overloading is under polymorphism a special feature in C++. While the operators in C have usual meaning operator overloading in C++ allows us to overload the operator to give the certain user defined functionality to the operator.





Syntax goes like this


operator x(arguments)


{


functionality


}





where x is an operator





operator overloading is generally used to operate the objects using operators instead of operating their members.


No comments:

Post a Comment