-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAdmin.java
36 lines (25 loc) · 919 Bytes
/
Admin.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
package recruitmentsystem;
public class Admin extends Account {
//please Edit admin
private static final Admin admin = new Admin(1, "Amr", "amr173800@bue", "Amr173800", "A12345");
private Admin(int id, String name, String email, String username, String password) {
super(id, name, email, username, password);
}
public void BanUser(Account acc) {
acc.setBanned(true);
}
public void validatevacencies() { //take Job object as parameter
}
public void DisplayUser(Account acc) {
System.out.println("ID: " + acc.getID() + "\nName: " + acc.getName()
+ "\nEmail: " + acc.getEmail() + "\nUsername: " + acc.getUsername()
+ "\nPassword: " + acc.getPassword());
}
public static Admin getobj() {
return admin;
}
@Override
public String Search(String s) {
return "not allowed";
}
}