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 does mean in xcode?
What number distinctive annotations is accessible in objective-c?
What is toll-free bridging? When is it useful?
Can you use swift and objective c together?
What does the objective c program fundamentally comprise of?
What are the rules of variable?
What is inheritance in objective c?
What is an accessor method?
Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?
What are nsautoreleasepool and how can we use them?
What is toll-free bridging?
What are the rules for identifiers?