-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUser.java
More file actions
executable file
·51 lines (43 loc) · 843 Bytes
/
User.java
File metadata and controls
executable file
·51 lines (43 loc) · 843 Bytes
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
/* Librarian Assistant Pro - Version 1.7
* Class: User
* Duties:
* The instance of this class represents a user.
* Keeps the information of a user.
* Creation Date: September 2008
*/
class User
{
private String username;
private String password;
private int userType;
public User(String user, String pass, int type)
{
username = user;
password = pass;
userType = type;
}
public String getUsername()
{
return username;
}
public String getPassword()
{
return password;
}
public int getUserType()
{
return userType;
}
public void setUsername(String newUsername)
{
username = newUsername;
}
public void setPassword(String newPass1)
{
password = newPass1;
}
public void setUserType(int newUserType)
{
userType = newUserType;
}
}