jameszhang
CJSDN高级会员
发贴: 1594
积分: 111
|
于 2004-12-03 08:01
floater wrote: Decorator: Change Human to Worker for a better name, because you have getJob(). SoldierDecorator and DeveloperDecorator should implement Human interface too. Then we could do a chain decoration to return something like 在 部队 软件公司 打工的 SoldierDecorator jamesSoldier = new SoldierDecorator(new DeveloperDecorator(james));
哈!我就是怕出现这个,呵呵,现实中怎么可能两个都有
Change Cjsdn_pour to CjsdnPourTeam, for 1. java naming convention 2. PourMan vs PourTeam
改这样
jameszhang edited on 2004-12-03 08:05
"First they ignore u, then they laugh at u, then they fight u, then u will win
Mahatma Gandhi"
|