function overloading: In functions overloading function is always same but, we can change data type or parameters .friends don't puzzle what is function and which function is change see below example sum is a function and the name of program is function overloading.
// this is called comment lines it never effect the program.
example:
In this example i never change the function sum but,
change parameters you can change data type also in this case.
// this is called comment lines it never effect the program.
example:
- void sum(int a,int b); //function=sum(this bracket no meaning)
- void sum(int a,int b,float c);
In this example i never change the function sum but,
change parameters you can change data type also in this case.
This video and below image help you to understand function overloading properly
