Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public PairCop(PairCop p) : base(p)
 {
     cop = p.cop;
     Speed = p.speed;
 }