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

📄 test.java

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

import java.util.ArrayList;
import java.util.List;

public abstract class Test implements Testable {
	private List questions;

	public Test() {
		// TODO Auto-generated constructor stub
		super();
		questions = new ArrayList();
	}

	public Test(String aText) {
		this();
		System.out.println(aText);
		generate();
	}

	
	public void addQuestion(Question aQuestion) {
		questions.add(aQuestion);
	}

	public List getQuestions() {
		return questions;
	}

	public void setQuestions(List questions) {
		this.questions = questions;
	}

	public int getQuestionCount() {
		return questions.size();
	}

	public Question getQuestion(int index) {
		if (index >= 0 && index < questions.size())
			return (Question) questions.get(index);

		return null;
	}

	public abstract boolean generate();
}

⌨️ 快捷键说明

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