-
Notifications
You must be signed in to change notification settings - Fork 0
/
Accessory.java
97 lines (69 loc) · 1.45 KB
/
Accessory.java
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package ExamMidTermOOP;
import java.io.IOException;
public abstract class Accessory {
protected String cpu;
protected String ram;
protected String card;
protected String mainboard;
protected String radiators;
protected String casePC;
protected String psu;
public String getCpu() {
return cpu;
}
public void setCpu(String cpu) {
this.cpu = cpu;
}
public String getRam() {
return ram;
}
public void setRam(String ram) {
this.ram = ram;
}
public String getCard() {
return card;
}
public void setCard(String card) {
this.card = card;
}
public String getMainboard() {
return mainboard;
}
public void setMainboard(String mainboard) {
this.mainboard = mainboard;
}
public String getRadiators() {
return radiators;
}
public void setRadiators(String radiators) {
this.radiators = radiators;
}
public String getCasePC() {
return casePC;
}
public void setCasePC(String casePC) {
this.casePC = casePC;
}
public String getPsu() {
return psu;
}
public void setPsu(String psu) {
this.psu = psu;
}
public Accessory(String cpu, String ram, String card, String mainboard, String radiators, String casePC,
String psu) {
super();
this.cpu = cpu;
this.ram = ram;
this.card = card;
this.mainboard = mainboard;
this.radiators = radiators;
this.casePC = casePC;
this.psu = psu;
}
public Accessory() {
super();
}
public abstract void input();
public abstract void display();
}