1.6.1.4 Strategy Pattern
Introduction to Software Development
The Strategy Design Pattern is like having a toolbox full of different tools, each designed for a specific job. When you face a problem, you can pick the right tool from the box based on the task at hand. In other words, you have “multiple ways” to solve a problem, and you can switch between them easily without changing much else.