O'Reilly logo

C++ for Programmers: Deitel by Harvey M. Deitel, Paul J. Deitel

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

11. Operator Overloading; String and Array Objects

Objectives

In this chapter you’ll learn:

Image  What operator overloading is and how it can make programs more readable and programming more convenient.

Image  To redefine (overload) operators to work with objects of user-defined classes.

Image  The differences between overloading unary and binary operators.

  To convert objects from one class to another class.

  When to, and when not to, overload operators. ...

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