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

📄 question.java

📁 远程电子考试系统
💻 JAVA
字号:
package org.fangsoft.testcenter.model;

public class Question {
	private Choice[] choices = new Choice[4];
	private String text;
	private int counter;
	/**
	* Constructor for Question
	*/
	public Question() {
	super();
	text = "";
	}
	public void addChoice(Choice aChoice) {
		choices[counter++] = aChoice;
		}
	public Choice getChoice(int index) {
		return choices[index];
		}
	public Choice[] getChoices() {
		return choices;
	}
	public void setChoices(Choice[] choices) {
		this.choices = choices;
	}
	public int getCount() {
		return choices.length;
		}
	public int getCounter() {
		return counter;
	}
	public void setCounter(int counter) {
		this.counter = counter;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	protected void finalize() throws Throwable {
		System.out.println("Finalize called on " + this);
		super.finalize();
		}
}

⌨️ 快捷键说明

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