Overloading is ability of one function to perform different tasks, i.e,it allows creating several methods with the same name which differ from each other in the type of the input and the output of the function.
Overloading can be used with functions and members.
Example
int volume(int s),
double volume(double r,int h),
long volume(long l,int b,int h)
Depending on the parameter passed the corresponding function will be called.
Login to rate this answer.
chandu
Answered On : Apr 5th, 2013
overloading is when you define two or more functions with same name and different signatures i.e number of parameters or type of parameters. overloading is resolved at compile time. it is a static or compile time binding.
Login to rate this answer.