Strategy
Intent: Define a family of interchangeable algorithms.
When to use it
- Swappable pricing or tax rules
- Different sorting/layout algorithms
Example
Choosing GST, VAT or sales-tax calculation by country.
Intent: Define a family of interchangeable algorithms.
Choosing GST, VAT or sales-tax calculation by country.