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