コード例 #1
0
ファイル: Vehicle.cs プロジェクト: EliodorPopov/TMPS
 public Vehicle(string manufacturer, string model, int year, string vINCode, string fuelType, ChasisTypes chasis, string countryOfManufacture, int maxSpeed, int nrOfWheels, int nrOfSeats, float pricePerHour, float urbanConsumption)
 {
     Manufacturer         = manufacturer;
     Model                = model;
     Year                 = year;
     VINCode              = vINCode;
     FuelType             = fuelType;
     Chasis               = chasis;
     CountryOfManufacture = countryOfManufacture;
     MaxSpeed             = maxSpeed;
     NrOfWheels           = nrOfWheels;
     NrOfSeats            = nrOfSeats;
     PricePerHour         = pricePerHour;
     UrbanConsumption     = urbanConsumption;
 }
コード例 #2
0
ファイル: VehicleFactory.cs プロジェクト: EliodorPopov/TMPS
 public static Vehicle CreateEconomVehicle(string manufacturer, string model, int year, string vINCode, string fuelType, ChasisTypes chasis)
 {
     return(new EconomVehicle(
                manufacturer: manufacturer,
                model: model,
                year: year,
                vINCode: checkVIN(vINCode),
                fuelType: fuelType,
                chasis: chasis,
                countryOfManufacture: getCountry(manufacturer)));
 }
コード例 #3
0
 public EconomVehicle(string manufacturer, string model, int year, string vINCode, string fuelType, ChasisTypes chasis, string countryOfManufacture)
     : base(manufacturer, model, year, vINCode, fuelType, chasis, countryOfManufacture, 150, 4, 5, 20, 9)
 {
 }