![]() |
![]() |
![]() |
![]() |
![]() |
|
To insert a Movie instance into an array, you use an assignment
statement, in which the array name and a bracketed integer index are
followed by the assignment operator, and by an expression that yields a
Movie instance:
*-- Expression that yields a Movie instance
v
-----------
movies[counter] = new Movie();