What do you mean by @synthesize and @dynamic in the objective-c?
Answer / Mohit Srivastava
@syntheize is a directive used in Objective-C to generate accessor methods for instance variables, while @dynamic is used to declare that the implementation of a method or property will be provided at runtime. In other words, @synthesize generates getter and setter methods automatically, while @dynamic tells the compiler not to generate these methods and leaves their implementation to a subclass.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the size classes?
How to declare variable in objective c?
What is the difference between #import and #include in objective-c?
What does the gc () method?
What is .m file in objective c?
When to use nsautoreleasepool??
What are the two types of tangible property?
How declare methods in objective c?
What does @synchronized() do?
Explain the difference between atomic and nonatomic synthesized properties.
Mention what is the primary use of the category in the objective-c?
What is nonatomic and strong in objective c?