Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Car : Vehicle
- {
- private static readonly double ADDITIONAL_CONSUMPTION = 0.9;
- public Car(double fuelQuantity, double fuelConsumption)
- : base(fuelQuantity, fuelConsumption + ADDITIONAL_CONSUMPTION)
- { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement