package questions; /** * This class represents a question that appears on a test. It has a right answer, * an allotted time, a difficulty, and the text of the question. */ public abstract class Question { public String questionText; public Answer answer; public int time; public int difficulty; /** * 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 Question(String questionText, Answer answer, int time, int difficulty) { } /** * Returns the text of this question * @return the text of this question */ public abstract String getText(); /** * Returns the Answer to this question * @return the answer of this question */ public abstract Answer getAnswer(); /** * Returns the Time it takes for this question * @return the time it takes to do this question */ public abstract int getTime(); /** * Return the difficulty of this question * @return the difficulty of this question */ public abstract int getDifficulty(); }