Lecture 11
12
Arrays in the better Bank
•
Bank.java (version 4) uses an array
•
Declare
field
accountList
of type
“array of BankAccounts” (line 32)
•
private BankAccount[] accountList
;
•
Create
the array, ready to hold 3 Items (60)
•
accountList
= new BankAccount[NUM_ACCOUNTS];
•