What are the attributes of category?



What are the attributes of category?..

Answer / Salil Kumar

In Objective-C, a category provides additional functionality to an existing class by adding new instance methods and/or class methods. The attributes of a category include: it must be declared with the @interface directive and should not have an instance variable declaration, it can only extend classes (not structures or unions), and its methods can access both public and private instance variables of the original class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What are the 5 performance objectives?

1 Answers  


How to declare global variable in objective c?

1 Answers  


Explain mutable types in objective c programming language?

1 Answers  


What is main storyboard?

1 Answers  


What are the rules of variable?

1 Answers  


What is the difference between property and instance variable?

1 Answers  


Why create a custom view?

1 Answers  


Does objective c have multiple inheritance?

1 Answers  


What is enum constant?

1 Answers  


What do you mean by synthesized in objective-c?

1 Answers  


What is mark and sweep algorithm?

1 Answers  


What is the difference between objective c and c++?

1 Answers  


Categories