Esempio n. 1
0
        public void ProcessProfit(IProfitStrategy profitStrategy)
        {
            double profit = profitStrategy.CalculateProfit(_car);

            _bankAccount.Deposit(profit);
        }
 public abstract void ProcessProfit(IProfitStrategy strategy);