Go to the
first,
previous,
next,
last section,
table of contents.
The following is a display of the contents of some of the previously
created instances:
________________________________________________________________
|
| > (send drill :show)
| Object is #<Object: #2ddbc>, Class is #<Object: #277a6>
| POWER = AC
| MOVEABLE = T
| OPERATION = HOLES
| #<Object: #2ddbc>
|
| > (send hand-saw :show)
| Object is #<Object: #2dc40>, Class is #<Object: #277a6>
| POWER = NONE
| MOVEABLE = T
| OPERATION = CUTS
| #<Object: #2dc40>
|________________________________________________________________
From the display of these instances you can see there are some
components and values. The components of an instance are:
- Class Pointer
-
This pointer shows to which class the current object instance belongs.
It is through this link that the system finds the methods to execute for
the received messages.
- Instance Variables and Values
-
The Instance Variables (IVAR) component lists what variables exist
within the instance. The Instance Values component holds what the
current values of the variables are. Instance Variables are used to
hold state information for each instance. There will be a group of
Instance Variables for each instance.
Go to the
first,
previous,
next,
last section,
table of contents.