|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectquestions.Question
questions.MultipleChoice
public abstract class MultipleChoice
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 |
---|
public MultipleChoice()
Method Detail |
---|
public abstract boolean score()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |