0

Any one can explain operater overloading?

I mean is it important concept to learn in c++ if it is iam stuck in binary operater overloading can any one help me

10th Feb 2019, 12:52 PM
Sai Venkat
Sai Venkat - avatar
1 Resposta
0
Imagine you really like the name Susan, so your child and dog are both named Susan. Saying just Susan+2 is confusing, but saying Child Susan+2 narrows it down to the only child named Susan, that's basically operator overloading. But remember you cannot have 2 childs named Susan, or things will become confusing. Overloading just lets you take 2 variable types and give them the same exact name.
12th Feb 2019, 11:59 PM
Cheese Burger Joe
Cheese Burger Joe - avatar