Chapter 10
Operator Overloading and Type Conversion
CHAPTER OUTLINE
10.3 Overloading Unary Operators
10.5 Constraint on Increment and Decrement Operators
10.6 Overloading Binary Operators
10.7 Overloading with friend Function
10.8 Overloading Assignment Operator (=)
10.10 Rules for Overloading Operators
10.11 One-Argument Constructor and Operator Function
10.1 INTRODUCTION
Operator overloading is one of the important and useful features of C++. We are familiar with function overloading in which multiple functions use the same name. The concept of operator overloading is somewhat similar ...
Get Programming in C++, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.