public virtual IVehicle CreateCoupe()
 {
     if (coupe == null)
     {
         coupe = new Coupe(new StandardEngine(1300));
     }
     return (IVehicle)coupe.Clone();
 }
 public virtual IVehicle CreateCoupe()
 {
     if (coupe == null)
     {
         coupe = new Coupe(new StandardEngine(1300));
     }
     return((IVehicle)coupe.Clone());
 }
Example #3
0
 public VehicleManager()
 {
     // For simplicity all vehicles use same engine type...
     saloon = new Saloon(new StandardEngine(1300));
     coupe = new Coupe(new StandardEngine(1300));
     sport = new Sport(new StandardEngine(1300));
     boxVan = new BoxVan(new StandardEngine(1300));
     pickup = new Pickup(new StandardEngine(1300));
 }
Example #4
0
 public VehicleManager()
 {
     // For simplicity all vehicles use same engine type...
     saloon = new Saloon(new StandardEngine(1300));
     coupe  = new Coupe(new StandardEngine(1300));
     sport  = new Sport(new StandardEngine(1300));
     boxVan = new BoxVan(new StandardEngine(1300));
     pickup = new Pickup(new StandardEngine(1300));
 }