package questions;
/**
* This class represents a free response question involving an essay-type format response.
*/
public abstract class LongAnswerQuestion 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 LongAnswerQuestion(String questionText, LongAnswer answer, int time, int difficulty)
	{
		super(questionText, answer, time, difficulty);	
	}

	/**
	* checks whether the student's response was correct
	* @param response the response given by the student while taking the test
	* @return a boolean value whether the response matches the correct answer
	*/
	public abstract boolean checkResponse(LongResponse response);
}