zoukankan      html  css  js  c++  java
  • 学生管理系统----课程封装类

    Course.java:


    /**
     * @Title:Course.java
     * @Package:com.you.student.system.model
     * @Description:课程封装类
     * @author:Youhaidong(游海东)
     * @date:2014-6-18 下午9:57:47
     * @version V1.0
     */
    package com.you.student.system.model;
    
    import java.io.Serializable;
    
    /**
     * 类功能说明
     * 类修改者 修改日期
     * 修改说明
     * <p>Title:Course.java</p>
     * <p>Description:游海东个人开发</p>
     * <p>Copyright:Copyright(c)2013</p>
     * @author:游海东
     * @date:2014-6-18 下午9:57:47
     * @version V1.0
     */
    public class Course implements Serializable 
    {
    	/**
    	 * @Fields  serialVersionUID:序列化
    	 */
    	private static final long serialVersionUID = 1L;
    	
    	/**
    	 * 课程号
    	 */
    	private String courseNo;
    	
    	/**
    	 * 课程名称
    	 */
    	private String courseName;
    	
    	/**
    	 * 开课学期
    	 */
    	private int classSemester;
    	
    	/**
    	 * 学时
    	 */
    	private int schoolPeriod;
    	
    	/**
    	 * 学分
    	 */
    	private int classScore;
    
    	/**
    	 * <p>Title:</p>
    	 * <p>Description:无参构造函数</p>
    	 */
    	public Course() 
    	{
    		super();
    	}
    
    	/**
    	 * <p>Title:</p>
    	 * <p>Description:有参构造函数</p>
    	 * @param courseNo
    	 * @param courseName
    	 * @param classSemester
    	 * @param schoolPeriod
    	 * @param classScore
    	 */
    	public Course(String courseNo, String courseName, int classSemester,
    			int schoolPeriod, int classScore) 
    	{
    		super();
    		this.courseNo = courseNo;
    		this.courseName = courseName;
    		this.classSemester = classSemester;
    		this.schoolPeriod = schoolPeriod;
    		this.classScore = classScore;
    	}
    
    	/**
    	 * @return the courseNo
    	 */
    	public String getCourseNo() 
    	{
    		return courseNo;
    	}
    
    	/**
    	 * @param courseNo the courseNo to set
    	 */
    	public void setCourseNo(String courseNo) 
    	{
    		this.courseNo = courseNo;
    	}
    
    	/**
    	 * @return the courseName
    	 */
    	public String getCourseName() 
    	{
    		return courseName;
    	}
    
    	/**
    	 * @param courseName the courseName to set
    	 */
    	public void setCourseName(String courseName) 
    	{
    		this.courseName = courseName;
    	}
    
    	/**
    	 * @return the classSemester
    	 */
    	public int getClassSemester() 
    	{
    		return classSemester;
    	}
    
    	/**
    	 * @param classSemester the classSemester to set
    	 */
    	public void setClassSemester(int classSemester) 
    	{
    		this.classSemester = classSemester;
    	}
    
    	/**
    	 * @return the schoolPeriod
    	 */
    	public int getSchoolPeriod() 
    	{
    		return schoolPeriod;
    	}
    
    	/**
    	 * @param schoolPeriod the schoolPeriod to set
    	 */
    	public void setSchoolPeriod(int schoolPeriod) 
    	{
    		this.schoolPeriod = schoolPeriod;
    	}
    
    	/**
    	 * @return the classScore
    	 */
    	public int getClassScore() 
    	{
    		return classScore;
    	}
    
    	/**
    	 * @param classScore the classScore to set
    	 */
    	public void setClassScore(int classScore) 
    	{
    		this.classScore = classScore;
    	}
    
    }
    


  • 相关阅读:
    Docker PHP 扩展配置
    PHP 打水印功能
    MYSQL的主从复制
    CentOS7开启防火墙及特定端口
    非常全面的讲解Hosts文件
    STL的erase()陷阱-迭代器失效总结
    scons使用
    SecureCRT 使用技巧
    atomic, spinlock and mutex性能比较
    内存池的实现(二)
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13315017.html
Copyright © 2011-2022 走看看