eschool.data
Class Answer
java.lang.Object
eschool.data.Answer
- public class Answer
- extends java.lang.Object
Constructor Summary |
Answer(int answerid,
java.lang.String content,
int correct)
Creates a new answer for a test question. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Answer
public Answer(int answerid,
java.lang.String content,
int correct)
- Creates a new answer for a test question.
- Parameters:
answerid
- id of the answercontent
- content of the answercorrect
- true if the answer is correct; false otherwise
getAnswerid
public int getAnswerid()
- Returns:
- answerid - id of the answer
setAnswerid
public void setAnswerid(int answerid)
- Parameters:
answerid
-
getContent
public java.lang.String getContent()
- Returns:
- content - content of the answer
setContent
public void setContent(java.lang.String content)
- Parameters:
content
-
getCorrect
public int getCorrect()
- Returns:
- correct - true if the answer is correct; false otherwise
setCorrect
public void setCorrect(int correct)
- Parameters:
correct
-
toString
public java.lang.String toString()
- A string representation of the current object