Recently,I have been reading the Head first design patterns,unconsciously,i have finish the seven chapters.and here i will review the whati just read tonight.
Tonight,i read the seventh chapter of my love book at the schoollibrary.this chapter tells us about the Adapter and facade pattern,i felt very cool after get it .
Frist of all,here is the offical definition of Adapter pattern,
the Adapter pattern converts a interface to another interface the client expect.what'more,this pattern lets the classes work together thatcould't otherwise because of the incompatible interfaces.as the Decorator,the Adapter also use the composition to work in java,but if the language support the mutiple inheritance,the Adapter pattern also could use the inheritance to work.what'more,this chapter also tells us another pattern --the Facade pattern.this pattern is also very usefull.it provide a unifined interface to a set of interfaces in a subsystem,and Facade defines a high level interface to make the subsystem easier to use.that is ,the facade pattern make a interface simpler.
Finally,I will sum up the differences among the Decorator ,Adapter,and the facade patterns.The Decorator pattern adds responsibilitieswithout altering the interface,The Adapter pattern converts one interface to another.the facade ,howerver,provide a simple interface so that the subsystem could be used easier.
分享到:
相关推荐
又名: Head First Design Patterns 作者: (美)弗里曼(Freeman,E.) 副标题: Head First Design Patterns 简介 ······ 你不想重新发明车轮(或者更差的是,没有充气车胎的轮子),所以你从设计模式中寻求...
Head First Design Patterns 中文版 带目录 设计模式经典书籍
深入浅出设计模式(Head First Design Patterns)完整版,由本人精心整理网上的JPG版制作成PDF版供各位编程爱好者下载学习, 这部模式教程诙谐幽默,寓教于乐,实乃菜鸟成才必备之选。共分为11个压缩包,绝对的物有所...
深入浅出设计模式(Head First Design Patterns)完整版,由本人精心整理网上的JPG版制作成PDF版供各位编程爱好者下载学习, 这部模式教程诙谐幽默,寓教于乐,实乃菜鸟成才必备之选。共分为11个压缩包,绝对的物有所...
深入浅出设计模式, 非常适合入门阅读, 英文浅显易读, 图文并茂, PDF版本,可以在手机上进行阅读.一本适合学习使用的书籍.
Pages from Head First Design Patterns (英文高清版)_part1.rar
head first design patterns是一本教您如何設計一個程式的書
深入浅出设计模式 Head First Design Patterns 英文影印版本,不是复印或者拍摄那种,非常清晰
这个压缩包是HeadFirst Design Patterns的源代码。希望能对有需要的人有所帮助
“Great code design is, first and foremost, great information design. A code designer is teaching a com- puter how to do something, and it is no surprise that a great teacher of computers should turn ...
HeadFirst Design Pattern in C#
Head First Design Patterns中文版
head first design patterns电子版本(第1部分)
软件设计模式中文版 &head; first python 。
《Head First Design Patterns》编辑推荐:强大的写作阵容。《Head First Design Patterns》作者Eric Freeman;ElElisabeth Freeman是作家、讲师和技术顾问。Eric拥有耶鲁大学的计算机科学博士学位,E1isabath拥有...
Your brain on Design Patterns. Here you are trying to learn something, while here your brain is doing you a favor by making sure the learning doesn’t stick. Your brain’s thinking, “Better leave ...
第1章到第11章陆续介绍的设计模式为Strategy、Observer、Decorator、Abstract Factory、Factory Method、Singleton,Command、Adapter、Facade、TemplateMethod、Iterator、Composite、State、Proxy。最后三章比较...
Head First Design Patterns 随书附带的源代码文件。 虽说看书敲代码比较好一些,但是拥有这么一份代码随时查看也是挺好的。