Instance variables

An instance variable is a variable that is declared inside a class, outside of a function, and is not declared to be static.

The program shown in Listing 3 illustrates instance variables.