Download presentation
Presentation is loading. Please wait.
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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.