SHARE
TWEET

Untitled

a guest Jul 17th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public Vehicle(double fuelQuantity, double fuelConsumtpion, double tankCapacity)
  2.         {
  3.             if (fuelQuantity <= tankCapacity)
  4.             {
  5.                 this.FuelQuantity = fuelQuantity;
  6.             }
  7.             else
  8.             {
  9.                 this.FuelQuantity = 0;
  10.             }
  11.  
  12.             this.FuelConsumption = fuelConsumtpion;
  13.             this.TankCapacity = tankCapacity;
  14.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top