Exemple #1
0
 public void Visit(MoneyBankAccount moneyBankAccount)
 {
     MonthlyIncome += moneyBankAccount.InterestPerMonth * moneyBankAccount.Ammount;
 }
Exemple #2
0
 public void Visit(MoneyBankAccount moneyBankAccount)
 {
     NetWorth += moneyBankAccount.Ammount + 210;
 }