Skip to content

Instantly share code, notes, and snippets.

@spaceplesiosaur
Created May 15, 2019 02:24
Show Gist options
  • Save spaceplesiosaur/924e405ecca5b59dbc35c5fa0fea5042 to your computer and use it in GitHub Desktop.
Save spaceplesiosaur/924e405ecca5b59dbc35c5fa0fea5042 to your computer and use it in GitHub Desktop.
Class_descriptions.txt
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