Home Segments Top Top Previous Next

Chapter 13:

How to Benefit from
Data Abstraction

You now know how to use constructor, getter, and setter methods. Moreover, you have seen how getters and setters make it easy to add computation at the point where values are accessed and assigned, and how getters and setters can be defined for imaginary instance variables. In this chapter, you learn how constructors, getters, and setters help you to practice data abstraction, thereby increasing your efficiency and making your programs easier to maintain.