Question: public class Auto { private String make; private String model; private int year; } a) write a default constructor for the Auto Class n) Write
public class Auto
{
private String make;
private String model;
private int year;
}
a) write a default constructor for the Auto Class
n) Write a constructor to initialize all instance variables
c) write accessor and mutator for make variable
d) create an onject name it myAuto with values of Toyota, Camry, and 2016
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
