public abstract class Question
extends java.lang.Object
| Constructor and Description |
|---|
Question()
Sets the parameters for a question object
|
Question(java.lang.String questionText,
Answer answer,
int time,
int difficulty) |
| Modifier and Type | Method and Description |
|---|---|
abstract Answer |
getAnswer()
Returns the Answer to this question
|
abstract int |
getDifficulty()
Return the difficulty of this question
|
abstract java.lang.String |
getText()
Returns the text of this question
|
abstract int |
getTime()
Returns the Time it takes for this question
|
public Question()
questionText - The text of a questionanswer - The answer object representing the answer of this questiontime - The time it takes to do this questiondifficulty - The difficulty of this questionpublic Question(java.lang.String questionText,
Answer answer,
int time,
int difficulty)
public abstract java.lang.String getText()
public abstract Answer getAnswer()
public abstract int getTime()
public abstract int getDifficulty()