Wednesday, February 20, 2008

Operator Overloading in C++

Operating overloading allows you to pass different variable types to the same function and make different results. Operator overloading is common-place between many efficient C++ programmers. It allows you to make use of the same function name, but as different functions.

If this sound confuse, then just consider it like this: you can use the same function name for as many functions as you like, but you *must* pass different variable types to all function.

0 Comments:

Post a Comment

<< Home