public void addjourney(int k) { if (k > 100) { service.NeedsService = true; } journey = new Journey(k + journey.kmtravelled); perKmRental = new PerKmRental(k + journey.kmtravelled); }
public Vehicle(int i, string b, string m, string y, string r) { id = i; brand = b; model = m; year = y; reg = r; journey = new Journey(); service = new Service(); fuelPurchase = new FuelPurchase(); perKmRental = new PerKmRental(); }