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.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
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