Repository navigation
Expand file tree
/
Copy pathDetective.java
More file actions
65 lines (64 loc) · 2.16 KB
/
Copy pathDetective.java
File metadata and controls
65 lines (64 loc) · 2.16 KB
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
import java.util.UUID;
/**
* allows access to changes and information about detective
*/
public class Detective extends User {
private String associate;
/**
*
* @param associate detective associates
* @param department detective departments
* @param userID detective unique user ids
* @param firstName detective first names
* @param lastName detective last names
* @param username detective user names
* @param password detective passwords
* @param email detective email
* @param phoneNumber detective phone number
*/
public Detective(String associate, String department, UUID userID, String firstName, String lastName, String username, String password, String email, String phoneNumber) {
super(userID, firstName, lastName, username, password, email, phoneNumber, department);
this.associate = associate;
}
/**
* provides a witness statement through the detective
* @param witnessStatement outputs the statement of the witness
*/
public void addWitnessStatement(String witnessStatement) {
System.out.println("Witness Statement: " + witnessStatement + " added.");
}
/**
* prints out the associate
* @param associate prints out the associates that are added
*/
public void addAssociate(String associate) {
System.out.println("Associate: " + associate + " added.");
}
/**
* method will output the report
* @param the report is stored and printed out
*/
public void addReport(String report) {
System.out.println("Report: " + report + " added.");
}
/**
* allows evidence ot be added
* @param evidence evidence stored and printed out
*/
public void addEvidence(String evidence) {
System.out.println("Evidence: " + evidence + " added.");
}
/**
* will provide associate
* @return returns the associates provided
*/
public String getAssociate() {
return associate;
}
/**
* to string that prints ut the associate in a super
*/
public String toString() {
return super.toString()+"\nAssociate: "+ associate + "\n";
}
}