package questions; /** * This class represents a programming question. */ public abstract class CodeQuestion 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 CodeQuestion(String questionText, CodeAnswer answer, int time, int difficulty) { super(questionText, answer, time, difficulty); } /** * checks whether the student's response was correct * @param response The response the student gave while taking the test * @return a boolean value whether the response was correct */ public abstract boolean checkResponse(CodeResponse response); }