0

Needing help writing a class for a car in java

Hello! I'm pretty new to java and I'm just learning the basics. I was needing help with this problem I have for my first assignment. The question is: Write a second java program: for a class called MyCar. It should contain data for the odometer, current speed, current gear, and methods to access and change the values of these variables. I'm pretty sure I know how to do the first part but I'm getting stuck where it says "use methods to access and change the values of these variables." any help would be really appreciated!

20th Jan 2019, 10:15 PM
Dalton
2 Answers
+ 1
Same question For me, I have not bought premium but i am very interested in it
23rd Oct 2023, 12:41 PM
CIS GRADE 5 A HAMZA SHEIKH
CIS GRADE 5 A HAMZA SHEIKH - avatar
21st Jan 2019, 1:01 AM
Denise Roßberg
Denise Roßberg - avatar