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.
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.