Lecture 5
4
Bank constructor
•sets value for bankName field
•creates a Terminal and two BankAccounts (invoking constructors in those classes)
–41 public Bank( String name )
–42 {
–43     bankName = name;
–44     atm      = new Terminal();
–45     account1 = new BankAccount
–           ( INITIAL_BALANCE );
–46     account2 = new BankAccount
–           ( INITIAL_BALANCE );
–47 }
•