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 |
What are the 5 performance objectives?
How to declare global variable in objective c?
Explain mutable types in objective c programming language?
What is main storyboard?
What are the rules of variable?
What is the difference between property and instance variable?
Why create a custom view?
Does objective c have multiple inheritance?
What is enum constant?
What do you mean by synthesized in objective-c?
What is mark and sweep algorithm?
What is the difference between objective c and c++?