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.
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
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.