The following Wikipedia article discusses the strategy pattern in detail:
https://en.wikipedia.org/wiki/Strategy_pattern