⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 choicequestion.java

📁 考试系统
💻 JAVA
字号:
package paper;

/**
 * @author SpiritRain
 *
 * Choice Question,an implementation of AbstractQuestion 
 * 
 */
public class ChoiceQuestion extends AbstractQuestion {

	/**
	 * Create a new Choice Question and initiate variables
	 * @param qutestionText question string to discribe the question
	 * @param answers answer of the question
	 * @param hint hint of the question
	 * @param score score of the question
	 * @param diff difficulty of the question
	 *   
	 */
	public ChoiceQuestion(
		String qutestionText,
		AbstractAnswerSet answers,
		String hint,
		int score,
		int diff) {
		super(qutestionText, answers, hint, score, diff);
	}

	/**
	 * discribe the answer
	 * @param index index number of the answer text
	 * @return answer text to discribe the answer
	 */
	public String getAnswerText(int index) {
		return ((ChoiceASet) answers).getAnswerText(index);
	}
	
	/*
	 * @see paper.AbstractQuestion#getType()
	 */
	public int getType() {
		return CHOICE;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -