package take; import questions.Question; import questions.Answer; /* A QuestionAttempt contains the question that the user is attempting, as well * as the answer that the user gave for that question. */ public abstract class QuestionAttempt { Question question; Answer answer; /** * Sets the parameters for a QuestionAttempt object * @param question the question that is being attempted * @param answer the answer given by the user *
       pre:
         //
         // Make sure the parameters are not null
         //
         question != null && answer != null
     */
     public QuestionAttempt(Question question, Answer answer) {} 
}