![](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 Pattern Design Principle Dependency Inversion Principle: Depend on abstractions. Don’t depend on concrete classes. Factory Method Definition The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which原创 2021-06-09 22:07:38 · 71 阅读 · 0 评论 -
<Head First Design Pattern> Chapter 3. Decorator Pattern
Chapter 3. Decorator Pattern Design Principle Classed should be open for extension, but closed for modification. Decorator Pattern The Decorator Pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternat原创 2021-06-02 15:26:21 · 70 阅读 · 0 评论 -
<Head First Design Pattern> Chapter 2. Observer Pattern
Design Principle Strive for loosely coupled designs between objects that interact. Observer Pattern One Subject + Many Observers = Observer Pattern The Observer Pattern defines a one-to-many dependency between objects so that when one object changes stat原创 2021-06-01 14:09:38 · 89 阅读 · 0 评论 -
<Head First Design Pattern> Chapter 1. Stategy Pattern
Chapter 1. Introduction to Design PatternDesign PrincipleDuck Application Chapter 1. Introduction to Design Pattern Design Principle Identify 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 · 99 阅读 · 1 评论