Mention what is the primary use of the category in the objective-c?



Mention what is the primary use of the category in the objective-c?..

Answer / Sapna Gupta

"Categories allow you to add new methods or properties to existing classes without subclassing. This helps to avoid cluttering your code with multiple subclasses and provides a way to add functionality to built-in classes like NSString, UIView, etc."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is better objective c or swift?

1 Answers  


What is synthesized in objective-c?

1 Answers  


What is nsstring?

1 Answers  


Who calls dealloc method?

1 Answers  


What is 'protocol' on objective c?

1 Answers  


What is the difference between method and type?

1 Answers  


Tell me something about objective-c blocks?

1 Answers  


Can you use objective c in swift?

1 Answers  


What is data encapsulation in objective-c?

1 Answers  


Explain mutable types in objective c programming language?

1 Answers  


How to convert string to nsnumber in objective c?

1 Answers  


What are benefits of collections views?

1 Answers  


Categories