Article: Operator Overloading

Overloading happens when you provide a new implementation customized to your particular class, which allows you to overload the common operators such as > (greater than) and < (less than). In this article, based on chapter 8 of Dart in Action, author Chris Buckett explains how this function helps you create truly self-documenting code by customizing the meaning built into the standard operators.

Please enter the following information below to receive this content.
Email:
Name:

Where does my email address go?

Your address will get added to our general New Product Announcement list. We send email to this list about 4 times a month to announce new titles, present updates to our Early Access title list, and offer you special promotions and freebies. Our aim is that you will be able to rely upon us to provide information you can use to enhance your professional skills.

But what if you do not want to receive email from Manning? No worries! You will always find an opt-out link on our emails. We really do not want to bother you with any information you do not feel like receiving.

Enjoy the free content, and feel free to discuss or offer feedback to the authors in the Author Online!