public abstract class LongAnswerQuestion extends Question
Constructor and Description |
---|
LongAnswerQuestion(java.lang.String questionText,
LongAnswer answer,
int time,
int difficulty)
Sets the parameters for a question object
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkResponse(LongResponse response)
checks whether the student's response was correct
|
getAnswer, getDifficulty, getText, getTime
public LongAnswerQuestion(java.lang.String questionText, LongAnswer answer, int time, int difficulty)
questionText
- The text of a questionanswer
- The answer object representing the answer of this questiontime
- The time it takes to do this questiondifficulty
- The difficulty of this questionpublic abstract boolean checkResponse(LongResponse response)