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

📄 studentreg.java

📁 国外的数据结构与算法分析用书
💻 JAVA
字号:
package Entities;

/**	Maintains information about registration in a section
	that a student requires. */
public class StudentReg
{
	/**	Data Attributes. */
	protected CallNum callNum;
	protected CourseReg courseReg;

	public StudentReg(CourseReg cr, CallNum cn)
	{
		callNum = cn;
		courseReg = cr;
	}

	/**	 Assign a grade for the student. */
	public void setGrade(String g)
	{
		courseReg.setGrade(g);
	}

	/**	Set the withdrawal date to be 'd'. */
	public void setWithdrawalDate(SimpleDate d)
	{
		courseReg.setWithdrawalDate(d);
	}

	/**	Return the section. */
	public CallNum callNum()
	{
		return callNum;
	}

	/**	Return the section. */
	public CourseReg courseReg()
	{
		return courseReg;
	}	

	public String toString()
	{
		String result = courseReg.toString();
		result += "Course Information ";
		result += callNum.toString();
		return result;
	}
}

⌨️ 快捷键说明

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