public User() { SavingsAccount = new SavingsAccount(); CheckingAccount = new CheckingAccount(); }
public User(CheckingAccount checkingAccount, SavingsAccount savingsAccount) { SavingsAccount = savingsAccount; CheckingAccount = checkingAccount; }
public void TransferTo(CheckingAccount checkingAccount, double transferredMoney) { Withdraw(transferredMoney); checkingAccount.Deposit(transferredMoney); }