//ι��һȺ���� public void FeedAnimals(Animal[] ans) { foreach (Animal an in ans) { an.eat(); } }
public void FeedAnimal(Animal animals) { animals.eat(); }
//ι��һȺ���� public void FeedAnimals(Animal[] ans) { foreach (Animal an in ans) { an.eat(); } }
public void FeedAnimal(Animal animals) { animals.eat(); }