public override void Eat(AbstractProducts.HerbivoreAbstractProduct herbivore) { Console.WriteLine(this.GetType().Name + " eats " + herbivore.GetType().Name); }
public AnimalWorldClient(AbstractFactories.ContinentAbstractFactory factory) { _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }