forked from Denisolt/CSCI-160
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployeeClass.java
More file actions
54 lines (47 loc) · 1.76 KB
/
EmployeeClass.java
File metadata and controls
54 lines (47 loc) · 1.76 KB
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
/* 24.09.2015
* Denisolt Shakhbulatov
_______________________________________________________________________________
+ EmployeeClass +
+_____________________________________________________________________________+
+ -employeeName: String +
+ -IDNum: int +
+ -Department: String +
+ -Position: String +
+____________________________________________________________________________ +
++EmployeeClass(employeeName:String,ID:int,Department:String,Position:String):+
+ +getname( ): String +
+ +getID( ): int +
+ +getDepartment( ): String +
+ +getPosition( ): String +
________________________________________________________________________________
*/
public class EmployeeClass
{
private String employeeName;
private int IDNum;
private String department;
private String position;
public EmployeeClass(String employee, int ID, String Department, String Position)
{
employeeName = employee;
IDNum = ID;
department = Department;
position = Position;
}
public String getname()
{
return employeeName;
}
public int getID()
{
return IDNum;
}
public String getDepartment()
{
return department;
}
public String getPosition()
{
return position;
}
}