public CashRegister() { this.taxCalc = new TaxCalculator(); this.billEntry = new BillEntryGenerator(this.taxCalc); }
public BillEntryGenerator(TaxCalculator taxCalc) { this.taxCalc = taxCalc; }