Chapter 14: | How To Protect Member Variables from Harmful Reference |
In Chapter 13, you learned that constructor, reader, and writer member functions help you to benefit from data abstraction. In this chapter, you learn how to ensure that all member-variable references and assignments are channeled through such member functions.