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 is dictionary objective c?
Is method and function same?
What is an example of category?
What do you mean by category and when to use it?
What is the difference between #import and #include in objective-c?
What is protocol in objective-c?
Are id and instancetype same? If not, what are differences between them?
What is an accessor method?
How to initialize nsmutabledictionary in objective c?
How do you add a category in objective c?
What is data encapsulation in objective-c?
What is protocol in simple words?