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++
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:
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.
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.