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 is the use of category in objective-c?
What are the different types of identifiers?
What is a process and thread?
Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?
What is the difference between nsdictionary and nsmutabledictionary?
What is a selector objective c?
What is the difference between a script and function?
How to use objective c file in swift?
What is the latest version of objective-c?
What happens when you create a block?
How does dispatch_once manages to run only once?
Explain how to call a function in objective-c?