Abstract
More things to make your classes work, and work well.
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 subscriptionsNotes
- 1.
Or I could have a data member days and an access function getDays (); some use that convention. But I find myDate.getDays() harder to read than myDate.days().
- 2.
Easy not elegant.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Will Briggs
About this chapter
Cite this chapter
Briggs, W. (2019). Classes (Continued). In: C++ for Lazy Programmers. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5187-4_16
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5187-4_16
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5186-7
Online ISBN: 978-1-4842-5187-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books