![]() |
![]() |
![]() |
![]() |
![]() |
|
Once you have inserted Movie instances into an array, you can alter
the instance variables in that Movie instance. For example, to
write into an element of the movies array, you use assignment
statements in which the array name, a bracketed integer index, and the
instance-variable name appear on the left side:
*-- Instance-variable name
|
| *-- Value to be stored
| |
v v
movies[counter].script = 6;