| | |
Summary: March 23, 2008 ICS102: The course 1
Arrays 2/4
March 23, 2008 ICS102: The course 2
Outline
Arrays and References
Arrays and Objects
Arrays Parameters
Example
March 23, 2008 ICS102: The course 3
- Arrays and References
Like class types, a variable of an array type holds a
reference
Arrays are objects
A variable of an array type holds the address of where the
array object is stored in memory
Array types are (usually) considered to be class types
March 23, 2008 ICS102: The course 4
- Arrays are Objects ...
An array can be viewed as a collection of indexed variables
An array can also be viewed as a single item whose value is a
|