What do you mean by @synthesize and @dynamic in the objective-c? And also explain what do you mean by synthesized in objective-c?
Answer / Kapil Kumar Verma
@synthesize and @dynamic are directives used in Objective-C for property access.
@synthesize is a compiler directive that automatically generates the accessor methods (getters and setters) for properties defined in the interface.
@dynamic, on the other hand, is a compiler directive that tells the compiler not to generate the implementation for certain properties at compile time. Instead, the implementation will be provided during runtime by another class or category.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is the principle distinction between the function calls and messages?
What is delegate? Can delegates be retained?
What are benefits of collections views?
How to create thread in objective c?
Tell me something about objective-c blocks?
What is dot notation?
What is property in objective c?
What are static attributes?
What is typedef objective c?
What is kvc and kvo?
What is the purpose of the protocol?
What is a delegate in objective c?