Created
May 15, 2019 02:24
-
-
Save spaceplesiosaur/924e405ecca5b59dbc35c5fa0fea5042 to your computer and use it in GitHub Desktop.
Class_descriptions.txt
This file contains 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) | |
Does it fly: (boolean) | |
MaxSpeed: (Integer) | |
CurrentSpeed: (Integer) | |
FuelTankCapacity: (Integer) | |
CurrentFuelLevel: (Integer) | |
ManufactureYear: (Integer) | |
Manufacturer: (String) | |
Methods: | |
Paint_Vehicle: (Modifies Color) | |
CalculateFuelLeftUntilEmpty: (Subtracts CurrentFuelLevel from FuelTankCapacity) | |
CalculateAge: (Subtracts ManufactureYear from Current Year) | |
Accelerate: Modifies CurrentSpeed | |
Brake: Modifies CurrentSpeed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment