Exemplo n.º 1
0
 protected Transaction(Account destinationAccount, double amount)
 {
     _destinationAccount = destinationAccount;
     _amount = amount;
     _date = DateTime.Now;
     _description = null;
 }
Exemplo n.º 2
0
 public DepositTransaction(Account destinationAccount, double amount)
     : base(destinationAccount, amount)
 {
     SetDescription("Deposit");
 }
Exemplo n.º 3
0
 public WithdrawTransaction(Account sourceAccount, double amount)
     : base(sourceAccount, amount)
 {
     SetDescription("Withdraw");
 }