Objects consist of state (implemented as instance variables)
and behavior (implemented as methods.)
The instance variables so far in these notes have been of primitive types (int
, double
, and the like)
and reference types (mostly String
).
An object may contain array references.
Is an array an object?