package questions; import java.util.Collection; /** * This class represents a multiple choice question */ public abstract class MultipleChoiceQuestion 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 MultipleChoiceQuestion(String questionText, MultipleChoiceAnswer answer, int time, int difficulty) { super(questionText, answer, time, difficulty); } /** * checks whether the student's response was correct * @param responses a list of responses given by the student while answering * this multiple choice question. * @return a boolean value whether the student's response matches the correct answer. */ public abstract boolean checkResponse(Collection responses); }