Consider the following code. Which statement is correct?
class Vehicle {
private String model;
private int year;
public Vehicle(String model, int year) {
this.model = model;
this.year = year;
}
}
Consider the following code. Which statement is correct?
class Vehicle {
private String model;
private int year;
public Vehicle(String model, int year) {
this.model = model;
this.year = year;
}
}