- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCrmCommand.java
More file actions
Latest commit
29 lines (22 loc) · 551 Bytes
/
Copy pathCrmCommand.java
File metadata and controls
29 lines (22 loc) · 551 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
packageCommand;
/**
* 开发一个CRM的命令,会让命令接收者干重复的活
*/
publicclassCrmCommandimplementsCommand {
privateDeveloperReceiverdeveloperReceiver;
publicCrmCommand(DeveloperReceiverdeveloperReceiver) {
this.developerReceiver = developerReceiver;
}
@Override
publicvoidexecute() {
developerReceiver.handleCode();
}
@Override
publicvoidundo() {
developerReceiver.cancelCode();
}
@Override
publicStringgetName() {
return"开发一个CRM";
}
}