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

Class HatchbackCar

Programs/Factory Method/HatchbackCar.java:3–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package factoryMethod;
2
3public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected