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 ("Number "+this.id+" name "+this.name+" title "+this.position+" Holiday "+this.holiday+" Salary "+this.sumsalary (This.holiday));}}
Employee classes for the JAVA employee management system