+ 1
what is function overloading ?
2 Antworten
+ 5
It's when you declare several functions with the same name, but different parameters. When calling an overloaded function, the right one is executed based on the number and types of the arguments.
+ 1
a good example are the constructor can have various types with only change in parameters.