Programmer's self-cultivation --23 design patterns

Programmer's self-cultivation --23 design patterns

 

Design patterns, it is popular predecessors in a number of development, summed up a set of practical, can be repeatedly applied. In order to improve the reusability of code, like readability

 

Nature study design patterns is the practical application of the principles of object-oriented design, the package of classes, inheritance, polymorphism, fully understand

 

classification:

 

 

 Here Pirates a map, I would not handwritten. . . . . . .

But the specific mode of content or to simply record it, find out.

 

Create a schema: used to describe how to create an object, characterized by: a utility to create separate objects.

Structural Model: class object used to describe how the layout of the composition according to some larger structure.

Behavioral patterns: used to describe how a single object can not be done in collaboration between the task object or class.

 

table of Contents:

01 singleton

02 prototype model

 

Guess you like

Origin www.cnblogs.com/ChromeT/p/11693730.html