What is class extension? Why do we require them?
Answer / Gaurav Prakash
Class extensions in Objective-C are a way to add methods and properties to existing classes without subclassing. This allows for code organization and prevents conflicts with other extensions or the original class implementation. You might need them when you want to extend the functionality of an existing class without modifying its source code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is c and objective c the same?
What are nsautoreleasepool? When to use them?
What are the important data types found in objective-c?
What is block in objective c?
Who invented objective c?
Distinguish between @synthesize and @dynamic in objective –c?
What are the different types of protocols?
What is differences between nsnull and nil in objective c?
What are the different types of identifiers?
Why we use synthesize in objective c?
What is nsarray objective c?
What is difference between objective c and swift?