public override int Compare(Animal x) { if (x.GetType().Name == this.GetType().Name) { PairCop tmp = (PairCop)x; return this.speed.CompareTo(tmp.speed); } return -1; }
public PairCop(PairCop p) : base(p) { cop = p.cop; Speed = p.speed; }