5. Operator Overloading#

In this chapter, we discuss what we can do to define the behavior of some of the operators (e.g. +, -, =, ==, << ) in C++ when they are used with objects of user-defined types (i.e., classes). This is called operator overloading.