Categories of Patterns

There are many patterns to keep track of. To help sort this out, the Gang of Four has grouped patterns into three general categories, as shown in Table 17-1.[1]

[1] Gamma, E., Helm, R., Johnson, R., Vlissides, J., Design Patterns: Elements of Reusable Object-Oriented Software, Reading, Mass.: Addison-Wesley, 1995, p. 10.

Table 17-1. Categories of Patterns
Category Purpose Examples in This Book Use For
Structural Bring together existing objects Handling interfaces
   Relating implementations to abstractions
Behavioral Give a way to manifest flexible (varying) behavior Containing variation
Creational Create or instantiate objects ...

Get Design Patterns Explained: A New Perspective on Object-Oriented Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.