| 1 | package factoryMethod; |
| 2 | |
| 3 | public class HatchbackCar implements Car { |
| 4 | String model; |
| 5 | String wheel; |
| 6 | String engine; |
| 7 | HatchbackCar(String model, String wheel, String engine) { |
| 8 | this.model = model; |
| 9 | this.wheel = wheel; |
| 10 | this.engine = engine; |
| 11 | } |
| 12 | |
| 13 | public String getModel() { |
| 14 | return model; |
| 15 | } |
| 16 | |
| 17 | public void setWheel(String wheel) { |
| 18 | this.wheel = wheel; |
| 19 | } |
| 20 | |
| 21 | public String getWheel() { |
| 22 | return wheel; |
| 23 | } |
| 24 | |
| 25 | public void setEngine(String engine) { |
| 26 | this.engine = engine; |
| 27 | } |
| 28 | |
| 29 | public String getEngine() { |
| 30 | return engine; |
| 31 | } |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected