When main line 2 starts executing, what method in the car class is
used? (Give the line number of the method header or just type in the
method header)
c5 public Car(String ownerIn, int yearIn,
String coIn, String modelIn)
In line c8, (right after line 2 started), what is the value of ownerIn?
Shop
In main line 3, what are the values in the car1 object?
Shop, 2007, Honda, Acura
When main line 5 starts executing, what method in the car class is
used? (Give the line number of the method header or just type in the
method header)
c18 updateOnwer
Before line c20 starts, what is the value of ownerIn?
Smith
Before line c20 starts, what is the value of this.owner?
shop
After line c20 (or at line c21), what is the value of this.owner?
Smith
When main line 10 starts executing, what method in the car class is
used? (Give the line number of the method header or just type in the
method header)
c18 updateOnwer
Before line c20 starts, what is the value of ownerIn?
whatever the user entered
Before line c20 starts, what is the value of this.owner?
salesman
After line c20 (or at line c21), what is the value of this.owner?
whatever the user entered
After main line 10 is done, what are the values in car?
whatever the user entered, 2006, plymouth,
voyager
What is the value of this.year in c44 while line 11 is execting?
2006
What is the value of this.year in c44 while line 12 is executing?
2007
What is the value of this.model in c39 while line 13 is executing?
voyager
What is the value of newcar.model in c39 while line 13 is executing?
voyager
What is the value of this.owner in c39 while line 13 is executing?
whatever the user entered
What is the value of newcar.owner in c39 while line 13 is executing?
shop
What are the values of car3's owner and model when line 13 is done?
shop, voyager,
What are the values of car2's owner and model when line 13 is done?
whatever the user entered, and plymouth,
When main line 15 is executing, what is the value of c25's
this.owner?
whatever the user enters
What is the value of c25's other.owner when line 15 is executing?
shop
Will car2 equal car3 in line 15?
no
Will car3 equal car4 in line 16?
yes