Beispiel #1
0
 /// <summary>
 /// Constructor3- Overloaded
 /// </summary>
 /// <param name="ID"></param>
 /// <param name="nickName"></param>
 /// <param name="age"></param>
 /// <param name="category"></param>
 /// <param name="gender"></param>
 /// <param name="numberOfTeeth"></param>
 /// <param name="quaranteen"></param>
 public Animal(string ID, string nickName, int age, CategoryType category, GenderType gender, int numberOfTeeth, bool quaranteen, int numberOfDays)
 {
     this.m_animalID         = ID;
     this.m_nickName         = nickName;
     this.m_animalAge        = age;
     this.m_animalCategory   = category;
     this.m_animalGender     = gender;
     this.m_NoOfTeeth        = numberOfTeeth;
     this.m_InQuarantine     = quaranteen;
     this.m_DaysInQuarantine = numberOfDays;
 }
Beispiel #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Animal()
        {
            this.m_animalID = null;
            this.m_nickName = null;
            this.m_animalAge = 0;
            this.m_animalCategory = 0;
            this.m_animalGender = 0;

            ////fields for mammal
            //this.m_NoOfTeeth = 0;
            //this.m_InQuarantine = false;
            //this.m_DaysInQuarantine = 0;
        }
Beispiel #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Animal()
        {
            this.m_animalID       = null;
            this.m_nickName       = null;
            this.m_animalAge      = 0;
            this.m_animalCategory = 0;
            this.m_animalGender   = 0;

            ////fields for mammal
            //this.m_NoOfTeeth = 0;
            //this.m_InQuarantine = false;
            //this.m_DaysInQuarantine = 0;
        }
Beispiel #4
0
 /// <summary>
 /// Constructor3- Overloaded
 /// </summary>
 /// <param name="ID"></param>
 /// <param name="nickName"></param>
 /// <param name="age"></param>
 /// <param name="category"></param>
 /// <param name="gender"></param>
 /// <param name="numberOfTeeth"></param>
 /// <param name="quaranteen"></param>
 public Animal(string ID, string nickName, int age, CategoryType category, GenderType gender, int numberOfTeeth, bool quaranteen, int numberOfDays)
 {
     this.m_animalID = ID;
     this.m_nickName = nickName;
     this.m_animalAge = age;
     this.m_animalCategory = category;
     this.m_animalGender = gender;
     this.m_NoOfTeeth = numberOfTeeth;
     this.m_InQuarantine = quaranteen;
     this.m_DaysInQuarantine = numberOfDays;
 }