Question: Question 6 ( 1 point ) What is the scope of odometer defined on line 7 ? 1 public class SimpleCar { 2 private int
Question point
What is the scope of odometer defined on line
public class SimpleCar
private int odometer;
public void driveForwardint miles
odometer odometer miles;
public void changeodometerint miles
int odometer;
odometer miles;
method driveForward
odometer is not defined
method changeOdometer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
