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); }
public Mammals(Mammals m) : base(m) { height = m.height; weight = m.weight; }
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); }
public Mammals(Mammals m) : base(m) { height = m.height; weight = m.weight; }