Home Segments Top Top Previous Next

Chapter 12:

How to Define Getter
and Setter Methods

In this chapter, you learn that getter and setter instance methods help you to work with instance-variable values.