Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
79 lines (63 loc) · 1.72 KB

File metadata and controls

79 lines (63 loc) · 1.72 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package JavaII;
public class Employee {
private static int n;
private long empId;
private String empName;
private String empSurName;
private String empPosition;
private double empSalary;
private double empBonus;
public Employee() {
this(null,null,null,0.0,0.0);
}
public Employee(String name, String surname, String pos, double sal, double bo) {
this.empName = name;
this.empSurName = surname;
this.empPosition = pos;
this.empSalary = sal;
this.empBonus = bo;
this.genEmployeeId();
}
public long genEmployeeId(){
n++;
this.empId=20000+n;
return this.empId;
}
public long getEmpId() {
return empId;
}
public String getEmpName() {
return empName;
}
public String getEmpSurName() {
return empSurName;
}
public String getEmpPosition() {
return empPosition;
}
public double getEmpSalary() {
return empSalary;
}
public double getEmpBonus() {
return empBonus;
}
public void setEmpName(String name) {
this.empName = name;
}
public void setEmpSurName(String sur) {
this.empSurName = sur;
}
public void setEmpPosition(String pos) {
this.empPosition = pos;
}
public void setEmpSalary(double sal) {
this.empSalary = sal;
}
public void setEmpBonus(double bonus) {
this.empBonus = bonus;
}
@Override
public String toString() {
return "Employee{" + "empId=" + empId + ", empName=" + empName + ", empSurName=" + empSurName + ", empPosition=" + empPosition + ", empSalary=" + empSalary + ", empBonus=" + empBonus + '}';
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.