0

How to add three object using opearator overloading??

4th Oct 2017, 5:09 PM
Saad Ahmed
Saad Ahmed - avatar
2 Answers
+ 7
Hmmm.... how would you type the operator between three arguments at the same time? :)
4th Oct 2017, 5:20 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 6
If you need to deal with more than 2 objects, the only ternary operator that came in my mind is the conditional operator. It still used 2 operators and I don't think we can overload it.
5th Oct 2017, 3:55 AM
Zephyr Koo
Zephyr Koo - avatar