Strategy Pattern - main players



  • Context
    • A class that maintains contextual information for an IStrategy object’s algorithm to work on
  • IStrategy
    • Defines an interface common to all the strategies
  • StrategyA, StrategyB
    • Classes that include algorithms that implement the IStrategy interface