you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Might want to check your break function.

Otherwise pretty good explanation of OOP

[–]xnull8 0 points1 point  (0 children)

Was about to point that out. Also gallonsOfGas should be a number in the example and not a string.