-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathPerson.java
More file actions
54 lines (40 loc) · 1017 Bytes
/
Person.java
File metadata and controls
54 lines (40 loc) · 1017 Bytes
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
package students.mesheikbrown;
public abstract class Person {
private int id;
private String fistName;
private String lastName;
private String email;
public Person(int id , String fistName, String lastName, String email){
this.id = id;
this.fistName = fistName;
this .lastName = lastName;
this.email = email;
}
//Getter
public int getId() {
return id;
}
public String getfirstName() {
return fistName;
}
public String getlastName() {
return lastName;
}
public String getEmail() {
return email;
}
//Setters
public void setId(int id) {
this.id = id;
}
public void setFirstName(String firstName) {
this.fistName = firstName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public void setEmail(String email) {
this.email = email;
}
public abstract void getSummary();
}// end of class