디자인 패턴 특성별 분류

|

디자인 패턴을 Creational/Structural/Behavioral 특성으로 분류하면 다음과 같습니다.


image


Organizing Design Patterns by Purpose

Creation Patterns

  • Deal with initializing and configuring classes and objects
Structural Patterns
  • Deal with decoupling interface and implementation of classes and objects

Behavioral Patterns

  • Deal with dynamic interactions among societies of classes and objects


Organizing Design Patterns by Scope

Class Patterns

  • Deal with relatinships between classes and their subclasses
  • Relationships established through inheritance, so they are fixed at compile time(static)
  • inheritance : white-box reuse

Object Patterns

  • Deal with object relatinships
  • Relationships can be changed at runtime(dynamic)
  • Composition : Black-box reuse, to avoid reaking encapsulation, and implementation dependency