public void ProcessProfit(IProfitStrategy profitStrategy) { double profit = profitStrategy.CalculateProfit(_car); _bankAccount.Deposit(profit); }
public abstract void ProcessProfit(IProfitStrategy strategy);
public void ProcessProfit(IProfitStrategy profitStrategy) { double profit = profitStrategy.CalculateProfit(_car); _bankAccount.Deposit(profit); }
public abstract void ProcessProfit(IProfitStrategy strategy);