what is overloading in c++ ???

what is overloading in c++ ???
Overloaded functions just means functions with the same name but different parameters (arity and types).
different parameters???
sorry , i am quite new to c++
closed account (z05DSL3A)
reiki222 wrote:
sorry , i am quite new to c++

Start here:
http://www.cplusplus.com/doc/tutorial/

Functions (I) and Functions (II) will help you with this question but as you have also asked about arrays, start at the beginning.
Parameters are the input that the function receives.

Example:

 
int max(int, int);
Here is a function named max with 2 int parameters.

 
double max(double, double);
Here is another function with the same name but different parameter types.

 
int max(int, int, int);
Here is a third function with the same name but with different number of parameters.

These three are overloaded functions.
thanks a lot!
Topic archived. No new replies allowed.