public static void RunFactory() { var factory = new HyundaiFactory(); var hyundai = factory.GetCar(HyundaiCars.VernaCar); Console.WriteLine(hyundai.ToString()); hyundai = factory.GetCar(HyundaiCars.I20Car); Console.WriteLine(hyundai.ToString()); }
public static void RunFactory() { var factory = new HyundaiFactory(); var hyundai = factory.GetCar( HyundaiCars.VernaCar ); Console.WriteLine( hyundai.ToString() ); hyundai = factory.GetCar( HyundaiCars.I20Car ); Console.WriteLine( hyundai.ToString() ); }