Chapter 1 메시지 vs 메서드 #8
Answered
by
JoeSeongchan
InHyeok-J
asked this question in
객체지향의 사실과 오해 Q&A
-
|
메시지와 메서드의 차이는? 메시지를 수신한 객체가 실행 시간에 메서드를 선택할 수 있다는 것은 무슨 의미인가? |
Beta Was this translation helpful? Give feedback.
Answered by
JoeSeongchan
Jan 30, 2023
Replies: 1 comment 1 reply
-
|
메시지는 다른 객체가 특정 기능을 수행하게끔 신호를 보내는 것. '개념'에 가까워. 조성찬 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
InHyeok-J
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
메시지는 다른 객체가 특정 기능을 수행하게끔 신호를 보내는 것. '개념'에 가까워.
메서드는 해당 객체가 메시지를 수신하여 작업을 수행할 수 있게 해주는 '구현체'
실행시간은 Runtime을 의미하고, 실행시간에 메서드를 선택한다는 것은 Polymorphism을 의미해.
조성찬