+ 2

What is Overloading in C++ Programming?

Function overloading allows to create multiple functions with the same name, so long as they have different parameters. can anyone explain it further I I'm not getting this from SL Tutorials

13th May 2017, 1:46 PM
Aijaz Ahmed
Aijaz Ahmed - avatar
2 Answers
+ 3
Based on the number of parameters for a function call it selects which function body to execute.
13th May 2017, 1:48 PM
Vishnu ks
Vishnu ks - avatar
+ 2
It also selects based on the types you pass in, but for that you should just use templates
13th May 2017, 2:00 PM
aklex
aklex - avatar