C++ enables you to create more than one function with the same name. This is called function overloading. The functions must differ in their parameter list, with a different type of parameter, a different number of parameters, or both. Here's an example:
int myFunction (int, int); int myFunction (long, long); int myFunction (long);
myFunction() is overloaded with three different parameter lists. The first and second versions differ in the types of the parameters, and the third differs in the number of parameters.
The return types can be the same or different on overloaded functions, as long as the parameter list is different. You can't overload just on return type, however.
Function overloading is also called function ...