This is my constructor. And i have this conflict(. I must check input argument in set method?
public Car(int maxSpeed, String manufacturer, String model, String carType) {
super(maxSpeed, manufacturer, model);
if (carType == null || carType.isEmpty()) {
throw new IllegalArgumentException();
}
this.carType = carType;
}
public void setCarType(String carType) {
this.carType = carType;
}