{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Question - Question.java Author Lewis/Loftus Represents a...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Question.java Author: Lewis/Loftus // // Represents a question (and its answer). //******************************************************************** public class Question implements Complexity { private String question, answer; private int complexityLevel; //----------------------------------------------------------------- // Sets up the question with a default complexity. //----------------------------------------------------------------- public Question (String query, String result) { question = query; answer = result; complexityLevel = 1; } //----------------------------------------------------------------- // Sets the complexity level for this question. //----------------------------------------------------------------- public void setComplexity (int level) { complexityLevel = level; } //----------------------------------------------------------------- // Returns the complexity level for this question. //----------------------------------------------------------------- public int getComplexity()
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}