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;
    	}
    
    }
    


    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    odoo14系列笔记-基本进销存(二)
    odoo14系列笔记-基本进销存(一)
    PVE另一种方法使用中科大的镜像服务器 NGINX反向代理
    git 国内加速
    VirtualBox开启套娃模式-打开嵌套 VT-x/AMD-V 功能
    K8S集群安装(基于DEIBAN,proxmox)
    JS语法 ES6、ES7、ES8、ES9、ES10、ES11、ES12新特性
    8个非常实用的Vue自定义指令
    require和import的区别
    js异步加载之defer、async、type=module
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4640650.html
Copyright © 2011-2022 走看看