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);
}