MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / HatchbackCarFactory

Class HatchbackCarFactory

Programs/Factory Method/HatchbackCarFactory.java:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package factoryMethod;
2
3public class HatchbackCarFactory implements CarFactory {
4 @Override
5 public Car buildCar(String model, String wheel, String engine) {
6 Car car = new HatchbackCar(model, wheel, engine);
7 return car;
8 }
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected