tomp.quiz
Class MultipleChoiceQuestion
java.lang.Object
tomp.quiz.AbstractQuestion
tomp.quiz.MultipleChoiceQuestion
- All Implemented Interfaces:
- Question
- Direct Known Subclasses:
- CheckGroupQuestion, RadioGroupQuestion
- public abstract class MultipleChoiceQuestion
- extends AbstractQuestion
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
right
protected java.util.BitSet right
highestRight
protected int highestRight
MultipleChoiceQuestion
public MultipleChoiceQuestion(java.lang.String id)
setAnswerCorrectAt
public void setAnswerCorrectAt(int at)
isAnswerCorrectAt
public boolean isAnswerCorrectAt(int at)
checkAnswer
public Answer checkAnswer(java.lang.String answered)
- Specified by:
checkAnswer
in interface Question
- Specified by:
checkAnswer
in class AbstractQuestion
getMyParameter
public java.lang.String getMyParameter(javax.servlet.http.HttpServletRequest req)
- Overrides:
getMyParameter
in class AbstractQuestion
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractQuestion