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