Class AShortAnswerQuestion

java.lang.Object
  extended by AbstractQuestion
      extended by AShortAnswerQuestion
All Implemented Interfaces:
Question

public class AShortAnswerQuestion
extends AbstractQuestion


Field Summary
private  java.lang.String correctAnswer
           
 
Constructor Summary
AShortAnswerQuestion(java.lang.String text, java.lang.String correctAnswer)
           
 
Method Summary
 boolean isCorrectAnswer(java.lang.String answer)
           
 
Methods inherited from class AbstractQuestion
getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

correctAnswer

private java.lang.String correctAnswer
Constructor Detail

AShortAnswerQuestion

public AShortAnswerQuestion(java.lang.String text,
                            java.lang.String correctAnswer)
Method Detail

isCorrectAnswer

public boolean isCorrectAnswer(java.lang.String answer)
Specified by:
isCorrectAnswer in interface Question
Specified by:
isCorrectAnswer in class AbstractQuestion