Qore Programming Language Reference Manual
0.8.11.1
|
Functions and methods can be overloaded if parameter types are declared as in the following example:
In this case, the first version (example(int)
) will be executed if called with an integer argument, and the second (example(string)
) if called with a string argument.
Class methods may also be overloaded, but note that destructor(), copy(), methodGate(), memberGate(), and memberNotification() methods may not be overloaded (see Classes for more information).