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

            _bankAccount.Deposit(profit);
        }
Exemplo n.º 2
0
 public abstract void ProcessProfit(IProfitStrategy strategy);