Skip to content

Conversation

@juy4556
Copy link
Collaborator

@juy4556 juy4556 commented Oct 17, 2022

No description provided.

@rilac1
Copy link
Collaborator

rilac1 commented Oct 20, 2022

선생님 진도가 너무 빨라요

Comment on lines +252 to +256
Copy link
Member

@waterfogSW waterfogSW Nov 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

맞아요 저도 교수님 패턴 적용이 이상하다 생각했습니다 👍🏼

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

음료와 Size를 상속관계로 구현하는 것 대신 위에서 언급한 생성자 방식이나 setter 방식을 통해 Size를 넣어주는 것이 좋아보이네요!

"상속보다는 합성을 사용하라" 라는 원칙을 적용하기 좋은 사례인 것 같습니다. 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

한번에 답을 내리지 않고 여러번 고민하는 모습 좋습니다 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants