![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面向对象编程
文章平均质量分 61
Jadon995
这个作者很懒,什么都没留下…
展开
-
<Head First Design Pattern> Chapter 4. Factory Pattern
Factory PatternDesign PrincipleDependency Inversion Principle: Depend on abstractions. Don’t depend on concrete classes.Factory MethodDefinitionThe Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which原创 2021-06-09 22:07:38 · 81 阅读 · 0 评论 -
<Head First Design Pattern> Chapter 3. Decorator Pattern
Chapter 3. Decorator PatternDesign PrincipleClassed should be open for extension, but closed for modification.Decorator PatternThe Decorator Pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternat原创 2021-06-02 15:26:21 · 83 阅读 · 0 评论 -
<Head First Design Pattern> Chapter 2. Observer Pattern
Design PrincipleStrive for loosely coupled designs between objects that interact.Observer PatternOne Subject + Many Observers = Observer PatternThe Observer Pattern defines a one-to-many dependency between objects so that when one object changes stat原创 2021-06-01 14:09:38 · 104 阅读 · 0 评论 -
<Head First Design Pattern> Chapter 1. Stategy Pattern
Chapter 1. Introduction to Design PatternDesign PrincipleDuck ApplicationChapter 1. Introduction to Design PatternDesign PrincipleIdentify the aspects of your application that vary and separate them from what stays the same.Program to an interface (ja原创 2021-05-25 15:02:40 · 160 阅读 · 1 评论