Forums Register Login

Stuck on a problem involving Class

+Pie Number of slices to send: Send
Here is a homework question. Write the class Car that is used in the following code and produces the output below:




Here is the code that was provided:



Here is what I have so far:



I'm confused about line 7 in the supplied code, I'm not sure what to do with that. Help?
+Pie Number of slices to send: Send
It simply changes the state member [miles] of the object by incrementing it with a specified value...
Onion rings are vegetable donuts. Taste this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 315 times.
Similar Threads
Encapsulation, coupling and cohesion
Errors trying to get random number to driver
variable in place of object?
please help me
Groovy - I think I get it
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:36:51.