-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathResume_shallow.java
More file actions
39 lines (34 loc) · 839 Bytes
/
Resume_shallow.java
File metadata and controls
39 lines (34 loc) · 839 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
package u009;
/**
* Created by HuGuodong on 11/21/19.
*/
public class Resume_shallow implements Cloneable, IResume {
private String name;
private int age;
private String timeSpan;
private String company;
public void setPersonalInfo(String name, int age){
this.name = name;
this.age = age;
}
public void setWorkExperience(String timeSpan, String company){
this.timeSpan = timeSpan;
this.company = company;
}
public void print(){
System.out.println(toString());
}
@Override
public String toString() {
return "Resume{" +
"name='" + name + '\'' +
", age=" + age +
", timeSpan='" + timeSpan + '\'' +
", company='" + company + '\'' +
'}';
}
@Override
protected Object clone() throws CloneNotSupportedException {
return super.clone();
}
}