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"); } }
public int CompareTo(object obj) { Vehicule tmp = (Vehicule)obj; return(this.m_cylindree.CompareTo(tmp.m_cylindree)); }