What is  Function Overloading 

by interviewspreparation.com

Fill in some text

by interviewspreparation.com

First Understand What is Overload

In general terms, 'overload' implies filling something more to its actual capacity, meaning overloading, overfilling, or overflowing, am I correct? 

by interviewspreparation.com

Example :

If you were a superhero, you'd likely possess more than two powers, correct? The same principle applies here. If I have a method called 'createSuperhero', it may have different data types as parameters. 

by interviewspreparation.com

In C++

void CreateSupeHero(int speed)

void CreateSuperHero(string name)

void CreateSuperHero(int speed, int strength)

int main() {       CreateSuperHero(100);       CreateSuperHero("You");       CreateSuperHero(200, 1000); }