-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFactory.java
More file actions
52 lines (40 loc) · 882 Bytes
/
Factory.java
File metadata and controls
52 lines (40 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package chap08;
public abstract class Factory {
private int openHour;
private int closeHour;
private String name;
public Factory() {
// TODO Auto-generated constructor stub
}
public Factory(int openHour, int closeHour, String name) {
super();
this.openHour = openHour;
this.closeHour = closeHour;
this.name = name;
}
public int getWorkingTime() {
return this.closeHour - this.openHour;
}
public abstract int makeProducts(char skill);
public int getOpenHour() {
return openHour;
}
public void setOpenHour(int openHour) {
this.openHour = openHour;
}
public int getCloseHour() {
return closeHour;
}
public void setCloseHour(int closeHour) {
this.closeHour = closeHour;
}
public String getFactoryName() {
return name;
}
// public String getName() {
// return name;
// }
public void setName(String name) {
this.name = name;
}
}