-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
28 lines (21 loc) · 728 Bytes
/
Copy pathUser.java
File metadata and controls
28 lines (21 loc) · 728 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
public abstract class User {
protected String username;
protected String password;
public User(String username, String password){
this.username = username;
this.password = password;
}
public abstract boolean login(String inputUsername, String inputPassword);
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public void setUsername(String username) {
this.username = username;
}
public void setPassword(String password) {
this.password = password;
}
}