public AnimalWorld_Client(IContinentFactory continent) { _plantEater = continent.CreatePlantEater(); _meatEater = continent.CreateMeatEater(); }
public string Eat(IPlantEater plantEater) { return(this.GetType().Name + " eats " + plantEater.GetType().Name); }