/** * Class constructor specifying name of make (manufacturer), model and year * of make. * /// *<param name="Manufacturer"></param> * /// <param name="Model"></param> * /// <param name="MakeYear"></param> * /// <param name="RegistrationNumber"></param> * /// <param name="OdometerReading"></param> * <param name="TankCapacity"></param> * <param name="lastServiceOdometerDate"></param> */ public Vehicle(string manufacturer, string model, int makeYear, string registrationNumber, double odometerReading, double tankCapacity, string lastServiceOdometerDate) { this.manufacturer = manufacturer; this.model = model; this.makeYear = makeYear; this.registrationNumber = registrationNumber; this.odometerReading = odometerReading; this.tankCapacity = tankCapacity; this.lastServiceOdometerDate = lastServiceOdometerDate; fuelpurchase = new FuelPurchase(); journey = new Journey(); service = new Service(); rental = new RentalPrice(); }
public void addFuel(double litres, double price) { FuelPurchase.PurchaseFuel(litres, price); }