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