-
Notifications
You must be signed in to change notification settings - Fork 0
/
Question.java
54 lines (43 loc) · 1.26 KB
/
Question.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
public public class Question {
private int questionId;
private String questionText;
private String option1;
private String option2;
private String option3;
private String option4;
private int correctOption;
public Question(int questionId, String questionText, String option1, String option2, String option3, String option4, String correctAnswer) {
this.questionId = questionId;
this.questionText = questionText;
this.option1 = option1;
this.option2 = option2;
this.option3 = option3;
this.option4 = option4;
this.correctOption = correctAnswer;
}
public Question(int questionId2, String questionText2, String option12, String option22, String option32,
String option42, String correctAnswer) {
}
public int getQuestionId() {
return questionId;
}
public String getQuestionText() {
return questionText;
}
public String getOption1() {
return option1;
}
public String getOption2() {
return option2;
}
public String getOption3() {
return option3;
}
public String getOption4() {
return option4;
}
public int getCorrectOption() {
return correctOption;
}
{
}}