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

📄 test.java

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

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

public abstract class Test implements Testable {
	// private Question[] questions=new Question[3];
	 private List questions;
	 private int limit_time;
	 private int total_score;
	 

	

	public int getLimit_time() {
		return limit_time;
	}

	public void setLimit_time(int limit_time) {
		this.limit_time = limit_time;
	}

	public int getTotal_score() {
		return total_score;
	}

	public void setTotal_score(int total_score) {
		this.total_score = total_score;
	}

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

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

	/*
	 * private String name; public String getName() { return name; } public void
	 * setName(String name) { this.name = name; }
	 */
	public void addQuestion(Question aQuestion) {
		// questions[counter++] = 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 + -