Beispiel #1
1
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="_odometer">current odometer to determine current mileage</param>
 public System_Status(Odometer _odometer)
 {
     this._odometer = _odometer;
     lastOilChange = _odometer.currentMileage();
 }
Beispiel #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="_odometer"></param>
 public TripInfo(Odometer _odometer)
 {
     this._odometer = _odometer;
     this._tripA = _odometer.currentMileage();
     this._tripB = _odometer.currentMileage();
 }