桥接模式的运用

上传者: 29388479 | 上传时间: 2020-01-03 11:30:19 | 文件大小: 11KB | 文件类型: zip
利用桥接模式完成以下实例: 1、编辑与作者。出版社的编辑负责策划图书,并遴选作者完成图书的编著,然后根据图书的印张发布图书。作者负责完成图书的编著工作。 2、模拟毛笔:现需要提供大中小3种型号的画笔,能够绘制5种不同颜色,如果使用蜡笔,我们需要准备3*5=15支蜡笔,也就是说必须准备15个具体的蜡笔类。而如果使用毛笔的话,只需要3种型号的毛笔,外加5个颜料盒,用3+5=8个类就可以实现15支蜡笔的功能。本实例使用桥接模式来模拟毛笔的使用过程。

文件下载

资源详情

[{"title":"( 27 个子文件 11KB ) 桥接模式的运用","children":[{"title":"Ex10","children":[{"title":"bin","children":[{"title":"ex1","children":[{"title":"Test.class <span style='color:#111;'> 768B </span>","children":null,"spread":false},{"title":"BookWriter.class <span style='color:#111;'> 196B </span>","children":null,"spread":false},{"title":"BookEdit.class <span style='color:#111;'> 426B </span>","children":null,"spread":false},{"title":"BookAuthor.class <span style='color:#111;'> 930B </span>","children":null,"spread":false},{"title":"TUPBookEdit.class <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"ex2","children":[{"title":"Test.class <span style='color:#111;'> 715B </span>","children":null,"spread":false},{"title":"SmallPen.class <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"Green.class <span style='color:#111;'> 836B </span>","children":null,"spread":false},{"title":"Color.class <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"RedColor.class <span style='color:#111;'> 845B </span>","children":null,"spread":false},{"title":"Pen.class <span style='color:#111;'> 347B </span>","children":null,"spread":false},{"title":"BigPen.class <span style='color:#111;'> 652B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"ex1","children":[{"title":"TUPBookEdit.java <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"BookWriter.java <span style='color:#111;'> 127B </span>","children":null,"spread":false},{"title":"BookAuthor.java <span style='color:#111;'> 275B </span>","children":null,"spread":false},{"title":"BookEdit.java <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"Test.java <span style='color:#111;'> 341B </span>","children":null,"spread":false}],"spread":true},{"title":"ex2","children":[{"title":"RedColor.java <span style='color:#111;'> 253B </span>","children":null,"spread":false},{"title":"Pen.java <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"BigPen.java <span style='color:#111;'> 267B </span>","children":null,"spread":false},{"title":"Green.java <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"Color.java <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":"SmallPen.java <span style='color:#111;'> 271B </span>","children":null,"spread":false},{"title":"Test.java <span style='color:#111;'> 325B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 301B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明