employee.java

来自「这是基于jsp的任务管理系统」· Java 代码 · 共 82 行

JAVA
82
字号

package cn.project.bit.Object;



public class Employee {
	
	private int employee_id;
	private String employee_name;
	
	private String employee_password;
	
	private String department;
	
	private Employee()
	{
		
	}
	
	private Employee(int manager_id,String manager_name,String manager_password,String department)
	{
		this.employee_id=manager_id;
		
		this.employee_name = manager_name;
		
		this.employee_password = manager_password;
	    this.department=department;
	}
	
	public static Employee getInstance()
	{
		return new Employee();
	}
	
	public static Employee getInstance(int employee_id,String employee_name,String employee_password,String department)
	{
		return new Employee(employee_id,employee_name,employee_password,department);
	}
	
	public void setId(int employee_id)
	{
		this.employee_id = employee_id;
	}
	
	public int getId()
	{
		return this.employee_id;
	}
	
	
	
	public void setEmployeename(String employee_name)
	{
		this.employee_name = employee_name;
	}
	
	public String getEmployeename()
	{
		return this.employee_name;
	}
	
	public void setEmployeepassword(String employee_password)
	{
		this.employee_password = employee_password;
	}
	
	public String getPassword()
	{
		return this.employee_password;
	}

	public void setDepartment(String department)
	{
		this.department = department;
	}
	
	public String getDepartment()
	{
		return this.department;
	}

}

⌨️ 快捷键说明

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