0

What due you mean by overload

30th Jun 2022, 6:12 AM
Madipadige Manish Kumar
Madipadige Manish Kumar - avatar
1 Answer
+ 4
OO7 Manish kumar .M C++ Overloading (Function and Operator) If we create two or more members having the same name but different in number or type of parameter, it is known as C++ overloading The parameters should follow any one or more than one of the following conditions for Function overloading: 1.parameters should have a different type add(int a, int b) add(double a, double b) 2.parameters should have a different number add(int a, int b) add(int a, int b, int c) 3.parameters should have a different sequence of parameters. add(int a, double b) add(double a, int b)
30th Jun 2022, 6:37 AM
Aly Alsayed
Aly Alsayed - avatar