-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathName.java
65 lines (55 loc) · 1.52 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() {
// try again
return this.title;
}
public String getFirst() {
return first;
}
public String getMiddle() {
return middle;
}
public String getSurname() {
return surname;
}
public String getSurnameParent1() {
return surnameParent1; //
}
public String getSurnameParent2() {
return surnameParent2;
}
public String getSuffixProfessional() {
return suffixProfessional; // @author Tartaro & Lockwood
}
public String getSuffixGenerational() {
return null;
}
}