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 are the advantages of using objective-c?
What is objective point of view?
What is a hash string?
How do I open .am files?
What is gcd? What are its advantages over nsthread?
What is synchronized() block in objective c?
Can you learn swift without knowing objective c?
What is the difference between string and nsstring?
List out the methods used in nsurl connection?
Explain what are the attributes of category?
What is a dispatch function?
What is difference between method and constructor?