Question: CHALLENGE ACTIVITY 1.5.1: Basic constructor definition. Define a constructor as indicated. Sample output for below program: Year: 0, VIN: -1 Year: 2009, VIN: 444555666 1

 CHALLENGE ACTIVITY 1.5.1: Basic constructor definition. Define a constructor as indicated.

CHALLENGE ACTIVITY 1.5.1: Basic constructor definition. Define a constructor as indicated. Sample output for below program: Year: 0, VIN: -1 Year: 2009, VIN: 444555666 1 N ===== Code from file CarRecord.java ===== 2 public class Car Record 3 private int yearMade; private int vehicleIdNum; 6 FIXNE: Write constructor, initialize year to a, vehicle ID num to -1. Your solution goes here public void setYear Made(int original Year) year'lade original Year public void setVehicleIdNumint vehic vehicleIdlum - veidrum; public void print) System.out.println("Years VI +vehicleIdum)

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!