Introduction to OOP: Chapter 3: Classes and Methods: [next] [previous] [audio] [real] [text]

State - Instance Variables

We have been using the term instance to mean a representative or an example of a class.

We will use the term instance variable to represent the state, or data values maintained internal to a class.

We can record information about the instance variables on the back side of a CRC card, since it is internal to a class.

Clients can see the front of the card, implementors can see the backside.

Intro OOP, Chapter 3, Slide 5