public override void Eat(Travoyadnie travoyadnie) { Console.WriteLine(this.GetType().Name + "едят " + travoyadnie.GetType().Name); }
public AnimalWord(ContinentFactory factory) { _travoyadnie = factory.CreateTravoyadnie(); _plotoyadnie = factory.CreatePlotoyadnie(); }
public abstract void Eat(Travoyadnie travoyadnie);