Explain what is @synthesize in objective-c?
Answer / Abhinandan Yadav
@synthesize is a compiler directive used in Objective-C to generate accessor methods (getters and setters) for instance variables declared in the interface of a class. It simplifies property management and makes it easier to follow Apple's coding guidelines.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a class property?
What is instancetype?
What is property and its types?
Ns object is a parent class or derived class?
What is a delegation protocol?
What does mean in objective c?
When might you use a cfarray/dictionary instead of a nsarray/dictionary?
What is struct in objective c?
What is protocol in objective-c?
Who calls dealloc method? Can we implement dealloc in arc? If yes, what is the need to do that?
Is swift or objective c better?
How do you write an objective statement?