-
Notifications
You must be signed in to change notification settings - Fork 0
/
User.java
65 lines (49 loc) · 1.18 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
public class User {
private String username,
password,
name,
lastname,
datebirth;
private int interests;
public User() {
}
public User(String username, String password, String name, String lastname, String datebirth, int interests) {
this.username = username;
this.password = password;
this.name = name;
this.lastname = lastname;
this.datebirth = datebirth;
this.interests = interests;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public void setPassw(String passw) {
this.password = passw;
}
public void setName(String name) {
this.name = name;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public void setDate(String date) {
this.datebirth = date;
}
public int getInterests(){
return this.interests;
}
public String getPass(){
return this.password;
}
public String getFullName() {
return this.name + " " + this.lastname;
}
public String toString() {
String user = "Username: " + this.username + "\nName: " + this.getFullName() + "\nDate Birth: " + this.datebirth;
return user;
}
}