-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAdmin.java
More file actions
31 lines (24 loc) · 744 Bytes
/
Copy pathAdmin.java
File metadata and controls
31 lines (24 loc) · 744 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
public class Admin extends Person {
private String username[] = new String[100];
String nickname[] = new String[100];
String birthday[] = new String[100];
Admin(int aid, String username, String password, String nickname, String birthday) {
super.personId[0] = aid;
this.username[0] = username;
super.password[0] = password;
this.nickname[0] = nickname;
this.birthday[0] = birthday;
}
public String getUsername(int i) {
return username[i];
}
public String getPassword(int i) {
return password[i];
}
public String getNickname(int i) {
return nickname[i];
}
public String getBirthday(int i) {
return birthday[i];
}
}