Lecture 10
15
arrays are Objects
•Created with new
•Size is determined at creation time but not at declaration time
•The square brackets provide the special syntax for sending an array a message
•myArray[i] refers to the value stored at index i (which must be an integer)
•Stored values may be primitive (in the box) or a reference to an object (an arrow) but all values must have the same type