public void Visit(BankAccount bankAccount) { Amount += bankAccount.Amount * bankAccount.MonthlyInterest; }
public void Visit(BankAccount bankAccount) { Total += bankAccount.Amount; }