-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmployees.java
38 lines (36 loc) · 904 Bytes
/
Employees.java
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
//A class that represents an employee.
//This class is used in the program FP_Sorensen_Mike.
import java.util.*;
public class Employees {
//Declare instance variables for
//objects of the Employees class
private String userName;
private String password;
private String userID;
//Constructor method to initialize instance
//variables
Employees()
{
userName = "none";
password = "none";
userID = "none";
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserName() {
return userName;
}
public void setPassword(String password) {
this.password = password;
}
public String getPassword() {
return password;
}
public void setUserID(String userID) {
this.userID = userID;
}
public String getUserID() {
return userID;
}
}