static void Main(string[] args) { var factory1 = new AfricaFactory(); AnimalWorld an1 = new AnimalWorld(factory1); an1.RunFoodChain(); var factory2 = new AmericaFactory(); AnimalWorld an2 = new AnimalWorld(factory2); an2.RunFoodChain(); Console.ReadKey(); }