Question 15 2 pts 4 What is the scope of odometer defined on line 7? 1 public class Simple Car { 2 private int odometer; 3 public void driveForward(int miles) { odometer = odometer + miles; 5} 6 public void change Odometer(int miles) { 7 int odometer; 8 odometer = miles; 9} 10} all of class Simple Car odometer is not defined method changeOdometer() method driveForward()

Respuesta :

Switching tactics Method Odometer() drive The odometer's forward() scope is specified on line 7.

An odometer, usually referred to as an odograph, measures the distance travelled by a bicycle, car, or other sort of vehicle. The instrument could be electrical, mechanical, or a combination of the two. Early odometers existed in Greco-Roman and ancient Chinese cultures. In countries that use imperial units or US customary units, it may also be referred to as a mileometer or milometer, with the former term being more prevalent in the United Kingdom and among Commonwealth countries. What may be the first evidence of the use of an odometer may be found in the writings of the ancient Roman Pliny and the ancient Greek Strabo. Both authors indicate the distances that Alexander the Great travelled, along with his bematists.

Learn more about Odometer from

brainly.com/question/15841144

#SPJ4

ACCESS MORE