Ejemplo n.º 1
0
 public void addjourney(int k)
 {
     if (k > 100)
     {
         service.NeedsService = true;
     }
     journey     = new Journey(k + journey.kmtravelled);
     perKmRental = new PerKmRental(k + journey.kmtravelled);
 }
Ejemplo n.º 2
0
 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();
 }