Why do we require class extension?
Answer / Avinash Kumar Subhash
Class extensions are used in Objective-C to separate the implementation details of a class from its public interface. This separation helps keep the code organized and easy to maintain, as it allows you to group related methods together without exposing them to the public API.
| Is This Answer Correct ? | 0 Yes | 0 No |
Does a thread created using performselectorinbackground:withobject: creates its own autorelease pool?
What do you mean by dot notation?
Is objective c still used?
What is method swizzling in objective c and why would you use it?
Does objective-c contain private strategies?
When would you use nsarray and nsmutablearray?
Explain class definition in objective-c?
Does objective c have pointers?
What are the advantages of swift over objective c?
Is c++ objective c?
What is the function of the category?
Why is objective c better than swift?