Пример #1
0
 public override int CompareTo(Animal other)
 {
     if (other is Bird)
     {
         return(Species.CompareTo(((Bird)other).Species));
     }
     else
     {
         return(1);
     }
 }