-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuestion.java
More file actions
74 lines (65 loc) · 1.65 KB
/
Copy pathQuestion.java
File metadata and controls
74 lines (65 loc) · 1.65 KB
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
public class Question {
private int id;
private String question;
private String opt1;
private String opt2;
private String opt3;
private String opt4;
private String answer;
public Question(int id, String question, String opt1, String opt2, String opt3, String opt4, String answer) {
this.id = id;
this.question = question;
this.opt1 = opt1;
this.opt2 = opt2;
this.opt3 = opt3;
this.opt4 = opt4;
this.answer = answer;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getQuestion() {
return question;
}
public void setQuestion(String question) {
this.question = question;
}
public String getOpt1() {
return opt1;
}
public void setOpt1(String opt1) {
this.opt1 = opt1;
}
public String getOpt2() {
return opt2;
}
public void setOpt2(String opt2) {
this.opt2 = opt2;
}
public String getOpt3() {
return opt3;
}
public void setOpt3(String opt3) {
this.opt3 = opt3;
}
public String getOpt4() {
return opt4;
}
public void setOpt4(String opt4) {
this.opt4 = opt4;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer;
}
@Override
public String toString() {
return "Question [id=" + id + ", question=" + question + ", opt1=" + opt1 + ", opt2=" + opt2 + ", opt3=" + opt3
+ ", opt4=" + opt4 + ", answer=" + answer + "]";
}
}