Added constructors for different types of questions.

This commit is contained in:
Brad Corbett 2020-04-29 10:12:30 +01:00
parent 429417e7f6
commit 4122589f53
3 changed files with 27 additions and 6 deletions

View file

@ -1,4 +1,13 @@
package uk.ac.aber.cs22120.group20.selfassessment;
import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
public class MatchTheMeaningQuestion {
DictionaryEntry[] correctAnswer;
public MatchTheMeaningQuestion(DictionaryEntry[] correctAnswer){
this.correctAnswer = correctAnswer;
}
}

View file

@ -1,12 +1,11 @@
package uk.ac.aber.cs22120.group20.selfassessment;
import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
public class SixMeaningsQuestion {
private static SixMeaningsQuestion ourInstance = new SixMeaningsQuestion();
private DictionaryEntry correctAnswer;
public static SixMeaningsQuestion getInstance() {
return ourInstance;
}
private SixMeaningsQuestion() {
private SixMeaningsQuestion(DictionaryEntry correctAnswer) {
this.correctAnswer = correctAnswer;
}
}

View file

@ -0,0 +1,13 @@
package uk.ac.aber.cs22120.group20.selfassessment;
import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
import java.util.LinkedList;
public class TranslationQuestion {
DictionaryEntry correctAnswer;
public TranslationQuestion(DictionaryEntry correctAnswer){
this.correctAnswer = correctAnswer;
}
}