Review Changes

This commit is contained in:
nikhilbarar
2018-08-26 23:12:33 +05:30
parent ce459e8f9f
commit cd44ef3c81
7 changed files with 137 additions and 22 deletions

View File

@ -29,17 +29,19 @@ public class Car {
private String make;
private String model;
private int year;
private String category;
/**
* Constructor to create an instance of car.
* @param theMake the make of the car
* @param theModel the model of the car
* @param make the make of the car
* @param model the model of the car
* @param yearOfMake the year of built of the car
*/
public Car(String theMake, String theModel, int yearOfMake) {
make = theMake;
model = theModel;
year = yearOfMake;
public Car(String make, String model, int yearOfMake, String category) {
this.make = make;
this.model = model;
this.year = yearOfMake;
this.category = category;
}
public String getMake() {
@ -53,4 +55,8 @@ public class Car {
public int getYear() {
return year;
}
public String getCategory() {
return category;
}
}