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 class b properties?
Is objective c difficult?
What is the difference between method and type?
How to use objective c file in swift?
What is dealloc?
How big is a atom?
What is the difference between property and instance variable?
Why do we require class extension?
What is thread safe function?
What is the latest version of objective-c?
What is block variable?
What is a delegate objective c?