예제 #1
0
 public void AddVehicule(Vehicule vaj)
 {
     if (this.m_NBVehicules < this.m_MaxVehicules)
     {
         this.m_colVehicules[m_NBVehicules] = vaj;
         this.m_NBVehicules++;
     }
     else
     {
         throw new Exception("Trop de véhicules");
     }
 }
예제 #2
0
        public int CompareTo(object obj)
        {
            Vehicule tmp = (Vehicule)obj;

            return(this.m_cylindree.CompareTo(tmp.m_cylindree));
        }