Ejemplo n.º 1
0
 public override int Compare(Animal x)
 {
     if (x.GetType().Name == this.GetType().Name)
     {
         Mammals tmp = (Mammals)x;
         return(this.height.CompareTo(tmp.height));
     }
     return(-1);
 }
Ejemplo n.º 2
0
 public Mammals(Mammals m) : base(m)
 {
     height = m.height;
     weight = m.weight;
 }