コード例 #1
0
 public Supplies()
 {
     catFood     = new CatFood();
     dogFood     = new DogFood();
     birdFood    = new BirdFood();
     reptileFood = new ReptileFood();
 }
コード例 #2
0
        private void feedReptiles(ReptileFood theReptileFood)
        {
            foreach (var reptile in Reptiles)
            {
                reptile.feedIt(reptile.FeedingAmount);
                theReptileFood.level -= reptile.FeedingAmount;
            }
            throw new System.NotImplementedException();

        }