Ejemplo n.º 1
0
 public User()
 {
     SavingsAccount  = new SavingsAccount();
     CheckingAccount = new CheckingAccount();
 }
Ejemplo n.º 2
0
 public User(CheckingAccount checkingAccount, SavingsAccount savingsAccount)
 {
     SavingsAccount  = savingsAccount;
     CheckingAccount = checkingAccount;
 }
Ejemplo n.º 3
0
 public void TransferTo(CheckingAccount checkingAccount, double transferredMoney)
 {
     Withdraw(transferredMoney);
     checkingAccount.Deposit(transferredMoney);
 }