示例#1
0
 private CheckingAccount createCheckingAccount(
     String accountNumber, String accountName, AccountManager manager, Boolean canOverdraw) {
   CheckingAccount account = new CheckingAccount(accountNumber, accountName, canOverdraw);
   manager.deposit(account, 100);
   return account;
 }
示例#2
0
 private SavingsAccount createSavingsAccount(
     String accountNumber, String accountName, AccountManager manager) {
   SavingsAccount account = new SavingsAccount(accountNumber, accountName);
   manager.deposit(account, 100);
   return account;
 }