Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 396 Bytes

arch-grasp-creator.md

File metadata and controls

14 lines (14 loc) · 396 Bytes
tags
architecture
grasp

Assign class B the responsibility to create an instance of class A if one of these is true(the more the better):

  • B "contains" or compositely aggregates A
  • B records A
  • B closely uses A
  • B has the initialising data for A

Related Patterns or Principles

  • Pattern Concrete Factory
  • Patter Abstract Factory
  • [[arch-grasp-low-coupling|Low Coupling]]