-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWomanBuilder.java
More file actions
39 lines (31 loc) · 889 Bytes
/
Copy pathWomanBuilder.java
File metadata and controls
39 lines (31 loc) · 889 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 JavaDesignModel;
public class WomanBuilder implements PersonBuilder{
person person;
public WomanBuilder() {
super();
this.person = new woman();
}
@Override
public void buildHead() {
// TODO Auto-generated method stub
person.setBody("建造女人头");
System.out.println("建造女人头");
}
@Override
public void buildBody() {
// TODO Auto-generated method stub
person.setBody("建造女人身体");
System.out.println("建造女人身体");
}
@Override
public void buildFoot() {
// TODO Auto-generated method stub
person.setBody("建造女人脚");
System.out.println("建造女人脚");
}
@Override
public JavaDesignModel.person builderPerson() {
// TODO Auto-generated method stub
return person;
}
}