+ 1

Whats an overload ?

overload

26th Aug 2018, 2:07 PM
Yacine Kchaou
Yacine Kchaou - avatar
2 Answers
+ 1
Operator overloading is a way to change what the operator does according to your needs. For instance: it is useful when summing collections of values, so that you can overload the plus '+' operator to add the first element of each collection, the second element of each collection, and so on. It is possible to do the same process by defining function that does it, but operation overloading makes the code more organized and easier to read and understand.
26th Aug 2018, 2:45 PM
Marchesa
Marchesa - avatar
0
Marchesa i didn't understand its concept very much but thank you anywayq
26th Aug 2018, 2:47 PM
Yacine Kchaou
Yacine Kchaou - avatar