public abstract class ShortAnswerQuestion extends Question
Constructor and Description |
---|
ShortAnswerQuestion(java.lang.String questionText,
ShortAnswer answer,
int time,
int difficulty)
Sets the parameters for a question object
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkResponse(ShortResponse response)
checks whether the student's response was correct
|
getAnswer, getDifficulty, getText, getTime
public ShortAnswerQuestion(java.lang.String questionText, ShortAnswer 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(ShortResponse response)