static void Main(string[] args) { Factory factory1 = new NorthFactory(); var fruit = factory1.CreateFruit(); Console.WriteLine(fruit.GetFruitName()); Console.ReadKey(); }
static void Main(string[] args) { Factory factory1 = new NorthFactory(); var fruit= factory1.CreateFruit(); Console.WriteLine(fruit.GetFruitName()); Console.ReadKey(); }