Created
July 10, 2019 02:19
-
-
Save adamsjr8576/9d2e7c8ff622e0b919e023722734b2c5 to your computer and use it in GitHub Desktop.
Class-Attributes-Methods for Vehicle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Class: Vehicle | |
| Attributes: | |
| color (string) | |
| model (string) | |
| seatCapacity (integer) | |
| totalPassengerCapacity (integer) | |
| engineRunning (boolean) | |
| fueltankCapacity (float) | |
| currentFueltankcapacity (float) | |
| Method: | |
| foldDownSeat (subtracts totalPassengerCapacity by seatCapacity) | |
| unfoldSeat (add seatCapacity to totalPassengerCapacity) | |
| paintCar (changes color attribute) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment