static void Main(string[] args) { IFactory factory = new AudiFactory(); Console.WriteLine(factory.CreateAuto()); factory = new BenzFactory(); Console.WriteLine(factory.CreateAuto()); Console.ReadKey(); }