码迷,mamicode.com
首页 > 编程语言 > 详细

JAVA 员工管理系统的员工类

时间:2015-09-13 17:22:30      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

package my.employee;

public class Employee {
	
	   private String ID;
	   private String name;
       private String position;
       private int holiday;
       private double salary;
       public Employee( String iD,String name,String position,int holiday,double salary)
       {
    	   super();
    	   ID=iD;
    	   this.name=name;
    	   this.position=position;
    	   this.holiday=holiday;
    	   this.salary=salary;   
       }
       
       public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public int getHoliday() {
		return holiday;
	}
	public void setHoliday(int holiday) {
		this.holiday = holiday;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	public  double sumSalary(int holiday){
		return 1;
		
	}
	public void display()
	{
		System.out.println("编号"+this.ID+"姓名"+this.name+"职务"+this.position+"假期"+this.holiday+"薪水"
	+this.sumSalary(this.holiday));
	}
}

  

JAVA 员工管理系统的员工类

标签:

原文地址:http://www.cnblogs.com/rentingting/p/4805160.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!