static void Main(string[] args) { Client client = new Client(); ApplicationInterface applicationInterface; applicationInterface = new ApplicationInterface(new MysqlDriver()); client.ClientCode(applicationInterface); Console.WriteLine(); applicationInterface = new RefinedAbstraction(new OracleDriver()); client.ClientCode(applicationInterface); }
public void ClientCode(ApplicationInterface applicationInterface) { Console.Write(applicationInterface.setDbDriver()); }