question.java

来自「简易的java问答系统」· Java 代码 · 共 57 行

JAVA
57
字号
package cn.netjava.pojo;

/**
 * 问题类,属性及方法
 * 
 * @author XieChengmin
 * 
 */
public class Question {

	private int id;

	private String questionContent;

	private Person p;

	private String other;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getQuestionContent() {
		return questionContent;
	}

	public void setQuestionContent(String questionContent) {
		this.questionContent = questionContent;
	}

	public Person getP() {
		return p;
	}

	public void setP(Person p) {
		this.p = p;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public String toString() {
		return "id:" + id + " ,content: " + questionContent + " person: " + p
				+ " ,other" + other;
	}

}

⌨️ 快捷键说明

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