Abstract
Friends are so important in C++ that they deserve a chapter all to themselves. Both classes and functions can be made friends of a given class. A friend has access to a class’s private data members, although it is not a member of the class.
e2:e4
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1996 Springer-Verlag London Limited
About this chapter
Cite this chapter
Seed, G.M. (1996). Friends. In: An Introduction to Object-Oriented Programming in C++. Springer, London. https://doi.org/10.1007/978-1-4471-3378-0_11
Download citation
DOI: https://doi.org/10.1007/978-1-4471-3378-0_11
Publisher Name: Springer, London
Print ISBN: 978-3-540-76042-9
Online ISBN: 978-1-4471-3378-0
eBook Packages: Springer Book Archive