Lecture 11
An array for 3 BankAccounts
•
•// fill array on lines
66-68 accountList [0] = new BA( 0, this); accountList [1] = new BA(100, this); accountList [2] = new BA(200, this);
•Improved BankAccount object has a field to hold a
reference to the Bank it belongs to (more later)
•