GRASP Principle
General Responsibility Assignment Software Patterns
각 object들에 responsibility를 어떻게 배정해 줄 것인가에 대한 가이드!
Typical tasks in constructing a sw with OOAD
- Identifying the requirements
- Create a domain model
- Create design model
9가지의 원칙이 있다.
Responsibility?
- accomplished by a single object
- or by a group of object
9가지 원칙들!
Creator: who creates an objects?
- 누가 object를 생성할 것인가에 관한 원칙
- “Container” object가 “Contained” object를 생성한다
- 예를 들어,
VideoStore
- Video