-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgrammingQuestion.java
More file actions
49 lines (41 loc) · 1.11 KB
/
Copy pathProgrammingQuestion.java
File metadata and controls
49 lines (41 loc) · 1.11 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
/**
* PART B: Abstract Factory Pattern
* Concrete Product - Programming/Code Challenge Question entity.
*/
public class ProgrammingQuestion implements Question {
private final String text;
private final int points;
private final String difficulty;
private final String language;
private final String expectedKeyword;
public ProgrammingQuestion(String text, int points, String difficulty,
String language, String expectedKeyword) {
this.text = text;
this.points = points;
this.difficulty = difficulty;
this.language = language;
this.expectedKeyword = expectedKeyword;
}
@Override
public String getType() {
return "Programming";
}
@Override
public int getPoints() {
return points;
}
@Override
public String getDifficulty() {
return difficulty;
}
@Override
public String getText() {
return text;
}
public String getLanguage() {
return language;
}
public String getExpectedKeyword() {
return expectedKeyword;
}
}