What is the main difference between function calls and messages?
Answer / 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 |
What is the difference between a script file and a function matlab?
What is difference between c and objective c?
What happens if you add your just created object to a mutable array, and you release your object?
What is the latest version of objective-c?
How much does m files cost?
Tell us the result when you invoke a particular method on a nil pointer?
Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?
What do you mean by synthesized in objective-c?
What is the difference between weak and unowned?
What is typedef objective c?
Why do we require class extension?
What is atomic in objective c?