Example #1
0
 public override string Stats()
 {
     return($"{base.Stats()} " + $"\nWingSpan: " +
            $"{WingSpan.ToString()}\nDiet: {FavoriteDiet}");
 }
 public override bool TextSearch(string keyword)
 {
     return(base.TextSearch(keyword) ||
            WingSpan.ToString() == keyword ||
            (HasJetEngines && keyword.ToLower() == "jet"));
 }
Example #3
0
 //3.3.2
 public override string Stats()
 {
     return($"Name: {Name.ToString()}, \tWeight {Weight.ToString()} kg, \tAge: {Age.ToString()} years, \tWingspan: {WingSpan.ToString()} m, \tNeckLength: { NeckLength.ToString()} m");
 }
Example #4
0
 //3.3.2
 public override string Stats()
 {
     return($"Name: {Name.ToString()}, \tWeight {Weight.ToString()} kg, \tAge: {Age.ToString()} years, \tWingspan: {WingSpan.ToString()} m, \tColorOfPink: { ColorOfPink.ToString()}");
 }
Example #5
0
        //public double MouthVolume
        //{
        //    get
        //    {
        //        return mouthVolume;
        //    }

        //    set
        //    {
        //        mouthVolume = value;
        //    }
        //}

        //3.3.2
        public override string Stats()
        {
            return($"Name: {Name.ToString()}, \tWeight {Weight.ToString()} kg, \tAge: {Age.ToString()} years, \tWingspan: {WingSpan.ToString()} m, \tMouthVolume: { MouthVolume.ToString()} l");
        }
Example #6
0
 public override bool Matches(string keyword)
 {
     return(base.Matches(keyword) ||
            WingSpan.ToString() == keyword ||
            (HasJetEngines && keyword.ToLower() == "jet"));
 }