SE450: Strategy: Example [10/22] ![]() ![]() ![]() |
From chapter 14 of Design Patterns Explained, we have an example for a Tax calculation. The classes are as follows:
Context = SalesOrder
CalcTax = Strategy
USTax, CanTax = ConcreteStrategy
Others: Configuration, TaskController