Question Classes now extend the Question Superclass
Question classes specific to assessment types now extend the Super class
This commit is contained in:
parent
909b7430d0
commit
e66c79cc61
3 changed files with 3 additions and 3 deletions
|
@ -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){
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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){
|
||||||
|
|
Reference in a new issue