What is the function of the category?
Answer / Pooja
In Objective-C, categories allow you to extend existing classes with new methods without modifying the original source code. Categories can define additional instance methods and class methods for a class. They are useful when you want to add functionality to an existing class without altering its original implementation.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is instancetype?
What is a delegate? Can you retain delegates?
What are the rules of variable?
What is an nsobject?
What is the difference between class and category?
Is there function overloading in objective-c?
Explain what is #import?
Is objective-c a dynamic language?
What is autoclosure?
What happens if you add your just created object to a mutable array, and you release your object?
What is atomic in objective c?
What are static attributes?