public void UseTradeProcessorClient() { var tradeProcessorClient = new TradeProcessorClient(); tradeProcessorClient.ProcessTrades(new TradeProcessor()); //Polymorphism tradeProcessorClient.ProcessTrades(new TradeProcessorVersion2()); }
public void UseTradeProcessorClient() { var tradeProcessorClient1 = new TradeProcessorClient(new TradeProcessor()); tradeProcessorClient1.ProcessTrades(); var tradeProcessorClient2 = new TradeProcessorClient(new TradeProcessorVersion2()); tradeProcessorClient2.ProcessTrades(); }