Home Segments Index Top Previous Next

209: Mainline

In other programming languages, instance variables are called member variables, fields, or slots. The virtue of alternative terms, such as slots, is that they encourage you to think of class definitions as patterns and to think of instances as filled-in patterns. Bowing to convention, however, this book uses the term instance variable throughout.