Search Topics....

Tuesday, January 24, 2012

Function overloading Vs Operator overloading

C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters. This capablity is called function overloading.  When an overloaded function is called, the C++ compiler selects the proper function by examining the number, types and order of the arguments in the call ie the signature of the function.

Operator overloading allows existing C++ operators to be redefined so that they work on objects of user defined classes.

No comments: