1 2 public class CapitalStrategyTermLoan extends CapitalStrategy { 3 4 protected double riskAmountFor(Loan loan){ 5 return loan.getCommitment(); 6 } 7 8 protected double riskFactorFor(Loan loan) { 9 return 2.0; 10 } 11 12 protected double duration(Loan loan) { 13 return 1.0; 14 } 15 16 }