Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Class: Bottle
Color (string)
LidType (string)
TotalCapacity (integer)
Stickers (array)
CurrentCapacity (integer)
Recyclable (boolean)
CalculatePercentFull (divides CurrentCapacity by TotalCapacity)
Refill (subtracts CurrentCapacity from TotalCapacity and then refills that amount)
AddSticker (append a sticker item into the Stickers array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.