Guest User

Vehicles-4

a guest
Mar 2nd, 2018
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Car : Vehicle
  2. {
  3. private static readonly double ADDITIONAL_CONSUMPTION = 0.9;
  4.  
  5. public Car(double fuelQuantity, double fuelConsumption)
  6. : base(fuelQuantity, fuelConsumption + ADDITIONAL_CONSUMPTION)
  7. { }
  8. }
RAW Paste Data