예제 #1
0
 //Setter to update the strategy
 public void SetCurrentStrategy(IExtractNumberStrategy strategy)
 {
     this._strategy = strategy;
 }
예제 #2
0
 //Constructor can take a default strategy
 public Context(IExtractNumberStrategy currentStrategy)
 {
     this._strategy = currentStrategy;
 }