What is the main difference between function calls and messages?
Answer Posted / Uttam Singh Kutiyal
In Objective-C, a function call is a way to invoke a method on an object directly, whereas a message is a way of invoking a method on an object indirectly. Messages are more flexible as they allow for polymorphism (same message can be sent to different objects that implement the same method), and also support key-value coding (accessing methods via keys).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category