In Chapter 10, we discuss how to overload operators to define how they should operate on objects of user-defined data types. (In fact, we’ve been using many overloaded operators to this point, including the stream insertion <<
and the stream extraction >>
operators, which are overloaded for all the fundamental types. We say more about overloading <<
and >>
to be able to handle objects of user-defined types in Chapter 10.)