Помогите, пожалуйста, я явно неправильно поняла условия задачи. Что не так?
package com.javarush.task.pro.task10.task1007;
/*
С крышей или без? Вот в чем вопрос
*/
public class Bugatti {
private String color;
private int year;
private String body;
public Bugatti(String color, int year, String body) {
this.color = color;
this.year = year;
this.body = body;
}
public String getColor() {
return color;
}
public String getBody() {
return body;
}
public int getYear() {
return year;
}
public void setColor(String color) {
this.color = "BLACK";
}
public void setYear(int year) {
this.year = 2020;
}
public void setBody(String body) {
this.body = "Coupe";
}
}