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")); }
//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"); }
//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()}"); }
//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"); }
public override bool Matches(string keyword) { return(base.Matches(keyword) || WingSpan.ToString() == keyword || (HasJetEngines && keyword.ToLower() == "jet")); }