Repository navigation
Expand file tree
/
Copy pathVictim.java
More file actions
72 lines (64 loc) · 1.75 KB
/
Copy pathVictim.java
File metadata and controls
72 lines (64 loc) · 1.75 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
66
67
68
69
70
71
72
/**
* @author Code Gods
*/
import java.util.UUID;
public class Victim extends Person{
private String relationship;
private String statement;
/**
*
* @param personID victim unique id
* @param firstName victim first name
* @param lastName victim last name
* @param gender victim gender
* @param race victim race
* @param age victim age
* @param height victim height
* @param weight victim weight
* @param phoneNumber victim phone number
* @param address victim address
* @param occupation victim occupation
* @param relationship victim relationship
* @param statement victim statement
*/
public Victim(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 victim relationship to criminal
*/
public String getRelationship() {
return relationship;
}
/**
*
* @param relationship taking in the relationship to the criminal
* setting relationship equal to parameter
*/
public void setRelationship(String relationship)
{
this.relationship = relationship;
}
/**
* getting victim statment on crime
*/
public String getStatement() {
return statement;
}
/**
* taking in a statement and setting it equal to the taken in statement
*/
public void setStatement(String statement)
{
this.statement = statement;
}
/**
* printing out relationship and statement
*/
public String toString(){
return super.toString() + "\nRelationship: "+relationship+"\nStatement: "+statement+"\n";
}
}