Example #1
0
 protected AbstractCar(IEngine engine,
     VehicleColour colour = VehicleColour.Unpainted)
     : base(engine, colour)
 {
     _gearboxStrategy = new StandardGearboxStrategy();
 }
Example #2
0
 public AbstractCar(IEngine engine, VehicleColour colour)
     : base(engine, colour)
 {
     // Starts in standard gearbox mode (more economical)
     gearboxStrategy = new StandardGearboxStrategy();
 }
 public AbstractCar(IEngine engine, VehicleColour colour)
     : base(engine, colour)
 {
     // Starts in standard gearbox mode (more economical)
     gearboxStrategy = new StandardGearboxStrategy();
 }