Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
package com.kce.employee.bean;

public class EmployeeOfficialDetails{
private int id;
private String name;
private int age;
private String gender;
private String designation;
private double salary;
private long contact_number;
private String email;

public EmployeeOfficialDetails(){

}
public EmployeeOfficialDetails(int id , String name , int age , String gender , String designation , double salary , long contact_number , String email){
this.id = id;
this.name = name;
this.age = age;
this.gender = gender;
this.designation = designation;
this.salary = salary;
this.contact_number = contact_number;
this.email = email;
}
public void setId(int id){
this.id = id;
}
public int getId(){
return id;
}

public void setName(String name){
this.name = name;
}
public String getName(){
return name;
}

public void setAge(int age){
this.age = age;
}
public int getAge(){
return age;
}

public void setGender(String gender){
this.gender = gender;
}
public String getGender(){
return gender;
}

public void setDesignation(String designation){
this.designation = designation;
}
public String getDesignation(){
return designation;
}

public void setSalary(double salary){
this.salary = salary;
}
public double getSalary(){
return salary;
}

public void setContact_number(long contact_number){
this.contact_number = contact_number;
}
public long getContact_number(){
return contact_number;
}

public void setEmail(String email){
this.email = email;
}
public String getEmail(){
return email;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.kce.employee.bean;

public class EmployeePersonalDetails extends EmployeeOfficialDetails{

private int id;
private String address;
private long contact_number;
private String email;

public EmployeePersonalDetails(){

}
public EmployeePersonalDetails(int id ,String address , long contact_number , String email){
this.id = id;
this.address = address;
this.contact_number = contact_number;
this.email = email;
}

public int getId(){
return id;
}

public String getAddress(){
return address;
}

public long getContact_number(){
return contact_number;
}
public String getEmail(){
return email;
}
}
Loading