Mid
From PDF
GoF Patterns
Gang of Four 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);
}Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png