Chapter 2 객체의 행동과 상태 #10
Answered
by
JoeSeongchan
InHyeok-J
asked this question in
객체지향의 사실과 오해 Q&A
-
|
56p 상태 캡슐화에서 객체의 상태를 캡슐화하고, 행동 만으로 협력에 참여한다고 한다. 이렇게 사람이 음료에게 마실게! 라는 메시지를 보내면 사람 입장에서는 |
Beta Was this translation helpful? Give feedback.
Answered by
JoeSeongchan
Jan 30, 2023
Replies: 1 comment 9 replies
-
|
맞음. boolean 값을 리턴받아 잘 처리되었는지 여부를 확인할 수 있음. 조성찬 |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
InHyeok-J
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

맞음. boolean 값을 리턴받아 잘 처리되었는지 여부를 확인할 수 있음.
아니면 해당 메소드가 실행이 잘 안 됐을 때 Exception을 던지도록 하여 what 처리 여부를 확인할 수 있음.
조성찬