目录 CarFactory.java
public interface CarFactory {Engine createEngine();Seat createSeat();Tyre createTyre();
}LowCarFactory.java
public class LowCarFactory implements CarFactory{Overridepublic Engine createEngine() {return new LowEngine();}Overridepublic…