+ 2

What das overloading of operators mean?

10th Mar 2017, 6:44 PM
imi
3 odpowiedzi
+ 4
Function overloading allows to create multiple functions with the same name, so long as they have different parameters.and is like making two sum function but one takes 2 integers and the other one takes 2 doubles.
10th Mar 2017, 7:01 PM
Michael Ehab Mikhail
Michael Ehab Mikhail - avatar
+ 4
Yes if you enter an ineger it will use the int. function and the same thing for double or any data type
10th Mar 2017, 7:21 PM
Michael Ehab Mikhail
Michael Ehab Mikhail - avatar
+ 1
so C++ knows which one of the several functions to choose according to the input
10th Mar 2017, 7:14 PM
imi