Home Segments Top Top Previous Next

240: Mainline

A third virtue of data abstraction is that you can easily augment what a class provides. You can, for example, add information-displaying statements to your getters and setters, as you saw in Segment 223 and Segment 226.