コード例 #1
0
 public void Visit(Loan loan)
 {
     NetWorth -= loan.LoanAmount;
 }
コード例 #2
0
 public void Visit(Loan loan)
 {
     MonthlyIncome -= loan.MonthlyPayment;
 }