Chapter 3 #12
Unanswered
JoeSeongchan
asked this question in
객체지향의 사실과 오해 Q&A
Replies: 1 comment
-
|
질문 : "그런데 이렇게 객체를 고르면 너무 많은 책임이 하나의 객체에게 쏠리지 않는가?" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
객체지향 원칙 SOLID 중 S는 하나의 클래스가 하나의 책임만 수행하게 해야 한다는 원칙이다.
책에서 배운 객체지향 설계의 단계는 메시지 정하기 -> 메시지를 수신할 적절한 객체 고르기 이다.
메시지를 수신할 적절한 객체를 고르는 기준은 메시지를 받아 작업을 수행할 때 필요한 데이터를 가진 객체를 고르는 것이다.
그런데 이렇게 객체를 고르면 너무 많은 책임이 하나의 객체에게 쏠리지 않는가?
SOLID S 원칙은 절대적으로 옳은 원칙인가? 책임을 구분하는 기준은 무엇인가? 책임을 어느정도까지 추상화해야 하는가?
조성찬
Beta Was this translation helpful? Give feedback.
All reactions