questions
Class MultipleChoice

java.lang.Object
  extended by questions.Question
      extended by questions.MultipleChoice

public abstract class MultipleChoice
extends Question

This class is the multiple choice class and it contains a HashMap that maps the letter to the prompt. The answerKey variable holds the key to the prompt that is correct, where userSelectedKey holds the key the user entered.


Constructor Summary
MultipleChoice()
           
 
Method Summary
abstract  boolean score()
          This method will check to see if the userKey is equal to the answer key and return a true or false on this.
 
Methods inherited from class questions.Question
assignScore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleChoice

public MultipleChoice()
Method Detail

score

public abstract boolean score()
This method will check to see if the userKey is equal to the answer key and return a true or false on this.