• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stuck on a problem involving Class  RSS feed

 
Paul LeBlanc
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rico Felix
Ranch Hand
Posts: 411
5
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It simply changes the state member [miles] of the object by incrementing it with a specified value...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!