Home Segments Index Top Previous Next

Chapter 25:

How To Benefit from Data Abstraction

You now know how to use constructor, reader, and writer member functions. Moreover, you have seen how readers and writers make it easy to add computation at the point where information is read from or written into structure variables, and you have seen how to define readers for virtual structure variables. In this chapter, you learn more about the virtues of constructors, readers, and writers, and how such member functions help you to practice data abstraction.