Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Vehicle(double fuelQuantity, double fuelConsumtpion, double tankCapacity)
- {
- if (fuelQuantity <= tankCapacity)
- {
- this.FuelQuantity = fuelQuantity;
- }
- else
- {
- this.FuelQuantity = 0;
- }
- this.FuelConsumption = fuelConsumtpion;
- this.TankCapacity = tankCapacity;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement