2019-07-29Manager2

package com.foreknow.employee;

public class Manager {
private Employee[] emps=new Employee[5];
private int count;
public void addemployee (Employee emp) {
//通过此方法向emps数组中添加员工信息(Employee对象)
if (count<5) {
emps[count]=emp;
count++;
System.out.println("添加成功");
}else {
System.out.println("添加失败");
}
}//添加员工信息
public Employee getById(int id) {
return null;
}{

}

//根据id查询某个员工信息
public boolean deleteById(int id) {
return false;
}

public void updateEmployee(Employee e){

}

//根据id删除某个员工信息

//删除员工信息

public Employee[] getallMessage(){
return null;
}

//查询所有员工信息

}

你可能感兴趣的:(2019-07-29Manager2)