`

《设计模式——可复用面向对象软件的基础》学习笔记(1.1)What is a design pattern?

 
阅读更多
1.Four essential elements of a pattern:
(1)Pattern name;
(2)Problem;
(3)Solution;
(4)Consequences: The results and trade-offs of applying thepattern.


2.One person's pattern can be another person's primitive building block.


3.The design patterns in this book are descriptions of communicating objects and classes that are customized to solve a general design problem in a particular context.


4.In design with procedural laugnages, "Inheritance", "Encapsulation" and "Polymorphism" can also be design patterns.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics