previous
|
index
|
next
Instance Variables
Each instance of a class, or object, is characterized by the values of
instance variables
(also called
attributes
), that can change over time.
Instance variables give objects their
state
.
Instance variables for Oxford shirts could store:
color
price
neck size
sleeve length
previous
|
index
|
next