Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 9 Problems TC 1, 2. TC 1 Solution is to create an adapter that adapts calls from the payroll system to the payroll tax subsystem. TaxCalcAdapter.

Similar presentations


Presentation on theme: "Chapter 9 Problems TC 1, 2. TC 1 Solution is to create an adapter that adapts calls from the payroll system to the payroll tax subsystem. TaxCalcAdapter."— Presentation transcript:

1 Chapter 9 Problems TC 1, 2

2 TC 1 Solution is to create an adapter that adapts calls from the payroll system to the payroll tax subsystem. TaxCalcAdapter implements interface to ensure it can be called by Employee. Methods in the adapter in turn call PRollTaxCalculator With new signature

3 TC 2 Solution: Use an observer pattern. Window needs to implement this method because SimulationRun expects to call it. Window adds itself as a listener to Simulation run. Simulation Run will notify all listeners registered.


Download ppt "Chapter 9 Problems TC 1, 2. TC 1 Solution is to create an adapter that adapts calls from the payroll system to the payroll tax subsystem. TaxCalcAdapter."

Similar presentations


Ads by Google