Chapter 10: | How to Define Instance Methods |
In this chapter, you learn how you can define methods that are called in a special way, with a class-instance argument supplied via the field-selection operator, rather than via the usual list-of-arguments mechanism.