-
Notifications
You must be signed in to change notification settings - Fork 0
/
User.java
48 lines (38 loc) · 895 Bytes
/
User.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
39
40
41
42
43
44
45
46
47
48
package Vehicle_management;
public class User {
private String name;
private String email;
private String password;
private String role;
public User(String name,String email,String password,String role) {
this.name = name;
this.email = email;
this.password = password;
this.role = role;
}
public String getName() {
return name;
}
public String getEmail() {
return email;
}
public String getPassword() {
return password;
}
public String getRole() {
return role;
}
// Setter methods
public void setName(String name) {
this.name=name;
}
public void setEmail(String email) {
this.email = email;
}
public void setPassword(String password) {
this.password = password;
}
public void setRole(String role) {
this.role = role;
}
}