While overloading a function of two perametres,will it overload if I use two parametres of diffrent variable??? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

While overloading a function of two perametres,will it overload if I use two parametres of diffrent variable???

for example: void fnc(int a, float b); void fnc (float b, int a); will these functions overload???

28th Jan 2017, 3:07 AM
Sadatul islam Sadi
Sadatul islam Sadi - avatar
3 Respostas
+ 7
Yes =^=
28th Jan 2017, 4:10 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
"Overloading is possible provided the parameter list is different, including order." Source: http://stackoverflow.com/a/25840345 So yes, it will overload šŸ‘
28th Jan 2017, 3:25 AM
Jafca
Jafca - avatar
+ 2
@Hatsy Rei agrees so I must be right šŸ˜Ž
28th Jan 2017, 4:24 AM
Jafca
Jafca - avatar