discuss operator overloading in c# with suitable example to overload a binary operator.
Answers
Answered by
0
Answer:
Operators Overloadability
+, -, *, /, %, &, |, <<, >> All C# binary operators can be overloaded.
+, -, !, ~, ++, --, true, false All C# unary operators can be overloaded.
==, !=, <, >, <= , >= All relational operators can be overloaded, but only as pairs.
&&, || They can't be overloaded.
Similar questions