static void Main(string[] args) { BaseCalculator testMultiply = new BaseCalculator(); testMultiply.Multiply(); ScientificCalculator testSquareRoot = new ScientificCalculator(); testSquareRoot.SquareRoot(); }
public CalculatorStrategy(BaseCalculator calculator) { _calculator = calculator; }
public MainWindow() { baseCalculator = new BaseCalculator(new CalculateOperationFactory()); InitializeComponent(); CalculateButton.Click += CalcluateClick; }
public void SetCalculator(BaseCalculator calculator) { _calculator = calculator; }