+ 2

Can anyone explain operator overloading?

19th May 2017, 2:48 PM
ranjith
3 odpowiedzi
+ 2
Ever seen x+=x in any language....? That's it If X is 2 in the context X+=X will be X = X + X, hence X = 2 + 2
19th May 2017, 6:52 PM
Dylee
Dylee - avatar
+ 1
ok tanqs guyzz..
10th Sep 2017, 3:36 PM
ranjith
0
Operator overloading is a type of polymorphism. It means the same operator will have different meaning depending on the operands. for example, +,-,* or = are treated as polymeric functions depending on the type of their arguments.
24th May 2017, 5:44 AM
Mystique
Mystique - avatar