Embed presentation




![The Subscript Operator ([]):](https://image.slidesharecdn.com/chapter8-operatoroverloading-210505004424/75/Operator-Overloading-5-2048.jpg)



Operator overloading allows normal C++ operators like +, -, and = to be used with user-defined types by giving them additional meanings. This chapter discusses overloading unary operators, binary operators, arithmetic assignment operators, and the subscript operator [], as well as data conversion and conversions between different classes. It also covers UML class diagrams and some pitfalls to avoid like ambiguity, as well as the keywords explicit and mutable which control conversions and changing const object data.




![The Subscript Operator ([]):](https://image.slidesharecdn.com/chapter8-operatoroverloading-210505004424/75/Operator-Overloading-5-2048.jpg)


