2024-11-04 16:49:42 +01:00

21 lines
407 B
Java

package lab8_builder;
public abstract class CarBuilder {
protected Car car;
protected abstract String getCarType();
public Car getCar() {
return car;
}
public void setCar(Car car) {
this.car = car;
}
public abstract void buildEngine();
public abstract void buildBreaks();
public abstract void buildSeats();
public abstract void buildWindows();
}