Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class: Vehicle
- Attributes:
- Color (string)
- Electric (boolean)
- Currentfuel (float)
- Totalfuel (integer)
- Bumperstickers (array)
- Methods:
- Calculatepercentfull (Divide totalfuel by currentfuel)
- Refill (subtract currentfuel from totalfuel, and refills that amount)
- Addbumperstickers (add stickers to array)
- Electrictest (determines if vehicle is electric)
- changepaintcolor (changes color of car exterior)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement