public PrimitiveCalculator(IStartegy strategy) //II-way to set operator. Just add in defald startegy when I make instance. { this.strategy = strategy; }
public void ChangeStrategy(char @operator) { this.strategy = this.strategies[@operator]; }
public PrimitiveCalculator() { this.strategy = this.strategies['+']; }