Previous Page
Next Page

Chapter 19
Operator Overloading
After completing this chapter, you will be able to:

You have made a great deal of use of the standard operator symbols (such as + and –) to perform standard operations (such as addition and subtraction) on types (such as int and double). Many of the built-in types come with their own predefined behaviors for each operator. You can also define operators for your own structs and classes, which is the subject of this chapter.


Previous Page
Next Page