tags | ||
---|---|---|
|
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
- Pattern Concrete Factory
- Patter Abstract Factory
- [[arch-grasp-low-coupling|Low Coupling]]