Repository navigation
Expand file tree
/
Copy pathUserAccount.java
More file actions
80 lines (70 loc) · 2.09 KB
/
Copy pathUserAccount.java
File metadata and controls
80 lines (70 loc) · 2.09 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
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
80
package UserAccounts;
public class UserAccount
{
private String userName;
private String firstName;
private String lastName;
private String email;
private int phoneNumber;
private String password;
private String role;
//---------------------------constructor-----------------
UserAccount(String userName,String firstName,String lastName,String email,int phoneNumber,String password, String role)
{
setUserName(userName);
setFirstName(firstName);
setLastName(lastName);
setEmail(email);
setPhoneNumber(phoneNumber);
setPassword(password);
setRole(role);
}
@Override
public String toString()
{
return "username:"+userName+
"/first name:"+firstName+
"/last name:"+lastName+
"/email:"+email+
"/phone number:"+phoneNumber+
"/password:"+password+
"/role:"+role;
}
//------------------------setter & getter----------------------
public String getUserName() {return userName;}
public void setUserName(String userName) {this.userName = userName;}
public String getFirstName() {return firstName;}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public int getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(int phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
}