forked from echoTheLiar/JavaCodeAcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkExperience.java
More file actions
37 lines (27 loc) · 685 Bytes
/
WorkExperience.java
File metadata and controls
37 lines (27 loc) · 685 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
package designpattern.prototype;
import java.io.Serializable;
/**
* 工作经历类,为演示深度拷贝和浅度拷贝而用
*
* @author liu yuning
*
*/
public class WorkExperience implements Serializable {
private static final long serialVersionUID = 1L;
private String workDate;
private String workCompany;
public String getWorkDate() {
return workDate;
}
public WorkExperience setWorkDate(String workDate) {
this.workDate = workDate;
return this;
}
public String getWorkCompany() {
return workCompany;
}
public WorkExperience setWorkCompany(String workCompany) {
this.workCompany = workCompany;
return this;
}
}