Mid GoF Patterns

Strategy Interface (ISortStrategy):?

  • The ISortStrategy interface defines a common method (Sort) that all concrete

strategies must implement. This allows clients (in this case, the Sorter class) to

work with any strategy that implements this interface.

public interface ISortStrategy

void Sort(List<int> list);

More from Design Patterns in C#

All questions for this course