Abstract
In this chapter, you’ll be exploring how to add support for operators (such as add and subtract) to your classes so that they can be applied to objects of a class type. This will make the types that you define behave more like C++’s fundamental data types.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2004 Ivor Horton
About this chapter
Cite this chapter
Horton, I. (2004). Operator Overloading. In: Ivor Horton’s Beginning ANSI C++: The Complete Language. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0656-9_14
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0656-9_14
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-59059-227-4
Online ISBN: 978-1-4302-0656-9
eBook Packages: Springer Book Archive