What do you mean by @synthesize and @dynamic in the objective-c?



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

Post New Answer

More Objective-C Interview Questions

What is the use of category in objective-c?

1 Answers  


What are the different types of identifiers?

1 Answers  


What is a process and thread?

1 Answers  


Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?

1 Answers  


What is the difference between nsdictionary and nsmutabledictionary?

1 Answers  


What is a selector objective c?

1 Answers  


What is the difference between a script and function?

1 Answers  


How to use objective c file in swift?

1 Answers  


What is the latest version of objective-c?

1 Answers  


What happens when you create a block?

1 Answers  


How does dispatch_once manages to run only once?

1 Answers  


Explain how to call a function in objective-c?

1 Answers  


Categories