forked from collinmcrae/GitPractice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Name.java
65 lines (55 loc) · 1.66 KB
/
Name.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
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.Date;
public class Name {
private String title;
private String first;
private String middle;
private String surname;
private String surnameParent1;
private String surnameParent2;
private String suffixGenerational; // e.g., III, Jr., Sr., etc.
private String suffixProfessional; // e.g., Ph.D., CPA, etc.
public Name (
String title,
String first,
String middle,
String surname,
String surnameParent1,
String surnameParent2,
String generational,
String professional
) {
this.title = title;
this.first = first;
this.middle = middle;
this.surname = surname;
this.surnameParent1 = surnameParent1;
this.surnameParent2 = surnameParent2;
this.suffixGenerational = generational;
this.suffixProfessional = professional;
}
public String getTitle() {
/* return name's title */
}
public String getFirst() {
/* return Name's first name */
}
public String getMiddle() {
/* return Name's middle name */
}
public String getSurname() {
/* return Name's last name */
}
public String getSurnameParent1() {
/* return parent1's last name */
}
public String getSurnameParent2() {
/* return parent2's last name */
}
public String getSuffixProfessional() {
/* return Name's professional suffix */
}
public String getSuffixGenerational() {
/* return Name's generational suffix */
return this.suffixGenerational;
}
}