Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 342 Bytes

File metadata and controls

5 lines (3 loc) · 342 Bytes

Strategy Pattern

Strategy is a behavioral design pattern that lets you define a family of algorithms, put each of them into a separate class, and make their objects interchangeable. source

In this example Sorter allows different types of SortingStrategy.