4个回答
2017-12-26 · 百度知道合伙人官方认证企业
尚学堂科技有限公司
北京尚学堂科技有限公司是一家从事JAVA、大数据、web前端、网络在线教育、互联网架构师、Android、ios技术开发、咨询为一体的软件公司。公司由海外留学人员和国内IT人士创建。
向TA提问
关注
展开全部
公司雇员类代码:
/**
* 公司雇员类
*
* @author qd
*
*/
public class Employee {
private String first_name;
private String last_name;
// 雇员id
private long employee_id;
private String email;
private String phone_number;
// 入职日前
private String hire_date;
// 工作id
private long job_id;
private double salary;
// 经理id号
private long manager_id;
public Employee() {
super();
}
public Employee(String first_name, String last_name, long employee_id, String email, String phone_number,
String hire_date, long job_id, double salary, long manager_id) {
super();
this.first_name = first_name;
this.last_name = last_name;
this.employee_id = employee_id;
this.email = email;
this.phone_number = phone_number;
this.hire_date = hire_date;
this.job_id = job_id;
this.salary = salary;
this.manager_id = manager_id;
}
public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
public String getLast_name() {
return last_name;
}
public void setLast_name(String last_name) {
this.last_name = last_name;
}
public long getEmployee_id() {
return employee_id;
}
public void setEmployee_id(long employee_id) {
this.employee_id = employee_id;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone_number() {
return phone_number;
}
public void setPhone_number(String phone_number) {
this.phone_number = phone_number;
}
public String getHire_date() {
return hire_date;
}
public void setHire_date(String hire_date) {
this.hire_date = hire_date;
}
public long getJob_id() {
return job_id;
}
public void setJob_id(long job_id) {
this.job_id = job_id;
}
public double getSalary() {
return salary;
}
public void setSalary(double salary) {
this.salary = salary;
}
public long getManager_id() {
return manager_id;
}
public void setManager_id(long manager_id) {
this.manager_id = manager_id;
}
@Override
public String toString() {
return "Employee [first_name=" + first_name + ", last_name=" + last_name + ", employee_id=" + employee_id
+ ", email=" + email + ", phone_number=" + phone_number + ", hire_date=" + hire_date + ", job_id="
+ job_id + ", salary=" + salary + ", manager_id=" + manager_id + "]";
}
}
测试类代码以及效果:
展开全部
/**
* 雇员类
* @author Administrator
*
*/
public class Employee {
private Integer eNo;//雇员编号
private Integer eName;//雇员姓名
private Integer eAge;//雇员年龄
public Integer geteNo() {
return eNo;
}
public void seteNo(Integer eNo) {
this.eNo = eNo;
}
public Integer geteName() {
return eName;
}
public void seteName(Integer eName) {
this.eName = eName;
}
public Integer geteAge() {
return eAge;
}
public void seteAge(Integer eAge) {
this.eAge = eAge;
}
}
* 雇员类
* @author Administrator
*
*/
public class Employee {
private Integer eNo;//雇员编号
private Integer eName;//雇员姓名
private Integer eAge;//雇员年龄
public Integer geteNo() {
return eNo;
}
public void seteNo(Integer eNo) {
this.eNo = eNo;
}
public Integer geteName() {
return eName;
}
public void seteName(Integer eName) {
this.eName = eName;
}
public Integer geteAge() {
return eAge;
}
public void seteAge(Integer eAge) {
this.eAge = eAge;
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
public class Employee(){
private String id;
private String name;
.......
public Employee(){
}
............
}
private String id;
private String name;
.......
public Employee(){
}
............
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
public class Employee {
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询