Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="id">int Id of the animal</param>
 /// <param name="name">string name of the animal</param>
 /// <param name="age">int age of the animal</param>
 /// <param name="category">Category of the animal</param>
 /// <param name="gender">Gender of the animal</param>
 /// <param name="flyingSpeed">int flying speed of animal</param>
 /// <param name="favouriteFood">string favourite food of animal</param>
 public Falcon(string name, int age, Category category, Gender gender, int flyingSpeed, string favouriteFood) : base(name, age, category, gender, flyingSpeed)
 {
     this.FavouriteFood1 = favouriteFood;
     birdSpecies         = BirdSpecies.Falcon;
     foodSchedule        = new FoodSchedule();
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="id">int Id of the animal</param>
 /// <param name="name">string name of the animal</param>
 /// <param name="age">int age of the animal</param>
 /// <param name="category">Category of the animal</param>
 /// <param name="gender">Gender of the animal</param>
 /// <param name="flyingSpeed">int flying speed of animal</param>
 /// <param name="talkingDialect">string talking dialect of animal</param>
 public Parrot(string name, int age, Category category, Gender gender, int flyingSpeed, string talkingDialect) : base(name, age, category, gender, flyingSpeed)
 {
     this.TalkingDialect = talkingDialect;
     foodSchedule        = new FoodSchedule();
 }
Пример #3
0
 /// <summary>
 /// Constructor that will set the species
 /// </summary>
 public Falcon() : base()
 {
     birdSpecies  = BirdSpecies.Falcon;
     foodSchedule = new FoodSchedule();
 }
Пример #4
0
 /// <summary>
 /// Constructor that will set the species
 /// </summary>
 public Parrot() : base()
 {
     birdSpecies  = BirdSpecies.Parrot;
     foodSchedule = new FoodSchedule();
 }