Feb 26, 2016 at 2:56pm
Last edited on Feb 26, 2016 at 6:39pm
Feb 26, 2016 at 2:59pm
Erm, you are talking about cards and poker hands, but you code is all about cars and driving. Could you explain?
Feb 26, 2016 at 5:15pm
Sorry, the error and the code are the same, i just explained another project I'm working on at the same time. Trying to make a new car, drive it a certain distance, get a flat tire, fix the flat, and print out the gas remaining at the end of the trip.

I've been up all night, sorry again for being scatterbrained :(
Feb 26, 2016 at 6:21pm
By default all members of a class are private. You never overrode the default setting of your Car class, so the constructor is private.
Topic archived. No new replies allowed.