1 2 public abstract class CapitalStrategy { 3 public abstract double capital(Loan loan); 4 5 protected abstract double riskAmountFor(Loan loan); 6 protected abstract double duration(Loan loan); 7 protected abstract double riskFactorFor(Loan loan); 8 }