Repository navigation
Expand file tree
/
Copy pathWitness.java
More file actions
54 lines (48 loc) · 1.45 KB
/
Copy pathWitness.java
File metadata and controls
54 lines (48 loc) · 1.45 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
import java.util.UUID;
/**
* information and details about the witness in the database
*/
public class Witness extends Person {
private String relationship;
private String statement;
/**
*
* @param personID witness unique ID
* @param firstName witness first name
* @param lastName witness last name
* @param gender witness gender
* @param race witness race
* @param age witness age
* @param height witness height
* @param weight witness weight
* @param phoneNumber witness phone number
* @param address witness address
* @param occupation witness occupation
* @param relationship witness relationship
* @param statement witness statement
*/
public Witness(UUID personID, String firstName, String lastName, String gender, String race, int age, double height, double weight, String phoneNumber, String address, String occupation, String relationship, String statement)
{
super(personID, firstName, lastName, gender, race, age, height, weight, phoneNumber, address, occupation);
this.relationship = relationship;
this.statement = statement;
}
/**
* returning the relation of the witness to the criminal
*/
public String getRelationship() {
return relationship;
}
/**
* returns the witness statment
*/
public String getStatement() {
return statement;
}
/**
* prints out the relationship and statement
*/
public String toString() {
return super.toString() + "\nRelationship: "+relationship+"\nStatement: "+statement+"\n";
}
}