Question: SAMPLE CLASS / th * / private String make;private String model:private double price;private char grade; * Constructor 1 usage this.make = make; this.price = grice;

SAMPLE CLASS/th */private String make;private String model:private double price;private char grade; * Constructor1 usage this.make = make; this.price = grice;}
}.SAMPLE PROGRAMmyCar car1= new myCar( mske: "Lexus", model: "ES", price 5000, grade 'A');}SAMPLE OUTPUT
Make: Lexus
ModeL: ES
Price: $5 $5e,80
6rade: 2
Using the following sample class and program above, modify only the sample class above to produce the sample output above. Only changes made to the class need to be provided. You do not have to retype the entire class
 SAMPLE CLASS/th */private String make;private String model:private double price;private char grade;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!