-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsuario.java
More file actions
38 lines (31 loc) · 816 Bytes
/
Copy pathUsuario.java
File metadata and controls
38 lines (31 loc) · 816 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
public abstract class Usuario {
private String username;
private String password;
private final int id;
// Constructor
public Usuario(String username, String password, int id) {
this.username = username;
this.password = password;
this.id = id;
}
// Getters
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public int getId() {
return id;
}
// Setters
public boolean setPassword(String password){
// Implementar la logica para guaradar el password en el archivo
this.password=password;
return true;
}
public void setUsername(String username){
this.username=username;
}
public abstract String toString();
}