1.

What Is Function Overloading?

Answer»

Function overloading is defined as a NORMAL function, but it has the ability to perform different tasks. It allowscreation of SEVERAL methods with the same name which differ from each other by type of input and output of the function.
Example
VOID add(INT& a, int& b);
void add(double& a, double& b);
void add(struct BOB& a, struct bob& b);

Function overloading is defined as a normal function, but it has the ability to perform different tasks. It allowscreation of several methods with the same name which differ from each other by type of input and output of the function.
Example
void add(int& a, int& b);
void add(double& a, double& b);
void add(struct bob& a, struct bob& b);



Discussion

No Comment Found