package questions; /** * This class represents a fill-in-the-blank question */ public abstract class ShortAnswerQuestion extends Question { /** * Sets the parameters for a question object * @param questionText The text of a question * @param answer The answer object representing the answer of this question * @param time The time it takes to do this question * @param difficulty The difficulty of this question */ public ShortAnswerQuestion(String questionText, ShortAnswer answer, int time, int difficulty) { super(questionText, answer, time, difficulty); } /** * checks whether the student's response was correct * @param the response to the question given by the student while taking the test * @return a boolean value whether the response matches the answer to this question */ public abstract boolean checkResponse(ShortResponse response); }