/**
 * @author Kim Paterson
 * @author MitchellRosen
 */
package question;

public abstract class EssayQuestion extends Question {
   /**
    * Grades this Question against |answer|.
    * @param answer The student's answer to this Question.
    * @return double in the range [0...1] representing the correctness of
    *    |answer|
    */
   /*@
     requires
   // 
   // Requires the right type of question.
   //
   (answer != null) && (answer instanceof EssayAnswer);
   @*/
   public abstract double Grade(Answer answer);
}