Beispiel #1
0
 public Truck(
     string _brand,
     string _model,
     Colors _color,
     FuelTypes _fuel,
     uint _maxSpeed,
     double _horsepowers,
     double _engineCapacity,
     TrailerWeightTypes _trailerWeightType)
     : base(_brand, _model, _color, _fuel, _maxSpeed, _horsepowers, _engineCapacity)
 {
     this.trailerWeightType = _trailerWeightType;
 }
Beispiel #2
0
 public static double GetCoefficient(TrailerWeightTypes type)
 {
     return(fuelConsumptionsCoefficient[type]);
 }