public AnimalWorldClient(AbstractFactories.ContinentAbstractFactory factory) { _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }
public override void Runaway(AbstractProducts.CarnivoreAbstractProduct carnivore) { Console.WriteLine(this.GetType().Name + " tries to escape from " + carnivore.GetType().Name); }