Question Classes now extend the Question Superclass

Question classes specific to assessment types now extend the Super class
This commit is contained in:
law39 2020-04-29 11:10:59 +01:00
parent 909b7430d0
commit e66c79cc61
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ package uk.ac.aber.cs22120.group20.selfassessment;
import uk.ac.aber.cs22120.group20.json.DictionaryEntry; import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
public class MatchTheMeaningQuestion { public class MatchTheMeaningQuestion extends Question {
DictionaryEntry[] correctAnswer; DictionaryEntry[] correctAnswer;
public MatchTheMeaningQuestion(DictionaryEntry[] correctAnswer){ public MatchTheMeaningQuestion(DictionaryEntry[] correctAnswer){

View file

@ -2,7 +2,7 @@ package uk.ac.aber.cs22120.group20.selfassessment;
import uk.ac.aber.cs22120.group20.json.DictionaryEntry; import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
public class SixMeaningsQuestion { public class SixMeaningsQuestion extends Question{
private DictionaryEntry correctAnswer; private DictionaryEntry correctAnswer;
private SixMeaningsQuestion(DictionaryEntry correctAnswer) { private SixMeaningsQuestion(DictionaryEntry correctAnswer) {

View file

@ -4,7 +4,7 @@ import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
import java.util.LinkedList; import java.util.LinkedList;
public class TranslationQuestion { public class TranslationQuestion extends Question {
DictionaryEntry correctAnswer; DictionaryEntry correctAnswer;
public TranslationQuestion(DictionaryEntry correctAnswer){ public TranslationQuestion(DictionaryEntry correctAnswer){