Exemplo n.º 1
0
        public virtual void CreateVehicule()
        {
            //Vehicule _default = new Vehicule();
            Vehicule _default = new Vehicule(4578, VehiculeColor.Cyan, 1, "Toyota");

            FactoryVehicules.Add(_default);
            _default.Start();
            _default.Stop();
        }
Exemplo n.º 2
0
 public virtual void CreateVehicule(Vehicule _vehicule)
 {
     _vehicule.Start();
     _vehicule.Stop();
     FactoryVehicules.Add(_vehicule);
 }