The Strategy Pattern is a behavioral design pattern from the book Design Patterns: Elements of Reusable Object-Oriented Software. It defines a family of algorithms and encapsulates them in objects. Use case - Different variations of an algorithm are needed - The algorithm should be exchangeable at the run time.
Sort: