Skip to content

Creational pattern

维基百科Creational pattern

Creational design patterns are composed of two dominant ideas. One is encapsulating knowledge about which concrete classes the system uses. Another is hiding how instances of these concrete classes are created and combined.[1]

NOTE: “encapsulating knowledge about which concrete classes the system uses”其实就是将encapsulate implementation,它所蕴含的是"Program to an 'interface', not an 'implementation'." (Gang of Four 1995:18)