public virtual void Transfer(BankAccountBase destinationAccount, double amount) { if (amount < 0) { throw new ArgumentException("Cannot transfer a negative amount"); } _balance -= amount; destinationAccount.Deposit(amount); }
public override void Transfer(BankAccountBase destinationAccount, double amount) { if (amount < 0) { throw new ArgumentException("Cannot transfer a negative amount"); } _balance -= amount; destinationAccount.Deposit(amount); _initialInvestment = _balance; }