-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathPerson.java
More file actions
98 lines (69 loc) · 1.62 KB
/
Person.java
File metadata and controls
98 lines (69 loc) · 1.62 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.zipcodewilmington.person;
/**
* Created by leon on 2/12/18.
*/
public class Person {
private String name;
private int age;
private String hairColor;
private String birthMonth;
private String talent;
private char gender;
public String nationality;
public Person() {
}
public Person(int age) {
}
public Person(String name) {
}
public Person(String name, int age) {
}
public String Person (String talent){
return " " ;
}
public char Person (char gender){
return gender;
}
public String getNationality() {
return nationality;
}
public void setNationality(String nationality) {
this.nationality = nationality;
}
public void setName(String name) {
this.name = name;
}
public void setAge(int age) {
this.age = age;
}
public String getName(String name) {
return name;
}
public Integer getAge(Integer age) {
return age;
}
public String getHairColor(String hairColor) {
return hairColor;
}
public void setHairColor(String hairColor) {
this.hairColor = hairColor;
}
public String getBirthMonth() {
return birthMonth;
}
public void setBirthMonth(String birthMonth) {
this.birthMonth = birthMonth;
}
public String getTalent() {
return talent;
}
public void setTalent(String talent) {
this.talent = talent;
}
public char getGender() {
return gender;
}
public void setGender(char gender) {
this.gender = gender;
}
}