Computer Science, asked by surajk50422, 1 month ago

discuss operator overloading in c# with suitable example to overload a binary operator.​

Answers

Answered by shreya721444
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