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 CLASSth private String make;private String model:private double price;private char grade; Constructor usage this.make make; this.price grice;
SAMPLE PROGRAMmyCar car new myCar mske: "Lexus", model: ES price grade A;SAMPLE OUTPUT
Make: Lexus
ModeL: ES
Price: $ $e
rade:
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
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
