Last edited on
Erm, you are talking about cards and poker hands, but you code is all about cars and driving. Could you explain?
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 :(
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.