Beispiel #1
0
 public void Visit(BankAccount bankAccount)
 {
     Amount += bankAccount.Amount * bankAccount.MonthlyInterest;
 }
Beispiel #2
0
 public void Visit(BankAccount bankAccount)
 {
     Total += bankAccount.Amount;
 }