What is an example of category?



What is an example of category?..

Answer / Dilip Kumar Baskey

A simple example of a category in Objective-C would be adding new methods to the existing NSObject class: @interface NSObject (MyCategory) - (void)myMethod; @end

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What are nsautoreleasepool?

1 Answers  


Mention whether nsobject is a parent class or derived class.

1 Answers  


How declare methods in objective c? And how to call them?

1 Answers  


What is toll-free bridging and when is it useful?

1 Answers  


What is m file?

1 Answers  


Can a static library (.a) contain resources like images, sound files etc?

1 Answers  


What is gcd objective c?

1 Answers  


What number distinctive annotations is accessible in objective-c?

1 Answers  


What is the protocol in objective c?

1 Answers  


What are the rules of variable?

1 Answers  


What is objective c used for?

1 Answers  


How to call methods in objective c?

1 Answers  


Categories