public void CreateAnimal() { //create a Factory for Land Animals Production AbstractFactory factoryOfLA = AbstractFactory.CreateAnimalFactory("landAnimal"); //using Factory for Land Animals Production, create a Tiger IAnimal createdAnimal = factoryOfLA.CreateAnimals("tiger"); Trace.WriteLine("\n\n" + createdAnimal.Create()); // AbstractFactory chocoFactory = AbstractFactory.getMeChoco("5*"); IAnimal CreateCat = factoryOfLA.CreateAnimals("cat"); Trace.WriteLine("\n\n" + CreateCat.Create()); }