- Some information in the
program is
needed (= stored) for a
short period of time
- We use local variables and
parameter variables
to store
short term
data
|
- Some information is
needed during the
entire execution of
the program
- We use class variables
to store such
long term
data
|
- Some information is
created
when needed and
destroyed when
the no longer needed
- We use instance variables
to store such
as needed
data
|
|