O'Reilly logo

Programming Microsoft® Visual C#® 2005: The Language by Donis Marshall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Operator Overloading

Developers add operator overloading to user-defined types to describe how that type works with common operators. A feature of built-in types is the automatic support of most operators. Built-in types, such as int, float, and long-value types, behave intuitively with mathematical, logical, and conditional operators. As expected, the plus, minus, and multiply operators implicitly perform addition, subtraction, and multiplication when applied to these types. This intrinsic knowledge of operators makes using built-in types convenient. You might want to use user-defined types as conveniently. Unfortunately, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required