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

Class SUVCar

Programs/Factory Method/SUVCar.java:3–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected