static void Main(string[] args) { var autoFactory = new AutoFactory(); IAuto car = autoFactory.CreateInstance("Audi"); car.On(); car.Off(); Console.ReadKey(); }
static void Main(string[] args) { var autoFactory = new AutoFactory(); IAuto car = autoFactory.CreateInstance("Audi"); car.On(); car.Off(); Console.ReadKey(); }