Home Segments Top Top Previous Next

Chapter 17:

How to Write Methods
that Call Other Methods

From what you have learned so far, you supply an instance method with a class instance by providing the class instance as the target: You write the name of the class instance, followed by the field-selection operator, followed by the name of the instance method.

In this chapter, you learn how to pass along an instance from a directly called instance method to an indirectly called instance method.