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; }
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))); }
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) { }