forked from loopccoew/Buffer-4.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.java
47 lines (39 loc) · 1.17 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
package Buffer;
import java.util.*;
public class User {
private String username;
private String password;
private String phoneNumber;
private ArrayList<PropertyNode> properties;
public User(String username, String password,String phoneNumber) {
this.username = username;
this.password = password;
this.phoneNumber=phoneNumber;
this.properties = new ArrayList<PropertyNode>();
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public String getPhoneNumber() {
return phoneNumber;
}
public ArrayList<PropertyNode> getProperties() {
return properties;
}
public void addProperty(PropertyNode property) {
properties.add(property);
}
}
class Owner extends User {
public Owner(String username, String password, String phoneNumber) {
super(username, password, phoneNumber);
}
}
class Tenant extends User {
public Tenant(String username, String password, String phoneNumber) {
super(username, password,phoneNumber);
}
}