InterviewSolution
Saved Bookmarks
| 1. |
Mention What Is The Use Of Category In Objective-c? |
|
Answer» The use of CATEGORY in OBJECTIVE-C is to extend an existing class by appending behavior that is useful only in certain situations. In order to add such EXTENSION to existing classes, objective –C PROVIDES extensions and CATEGORIES. The syntax used to define a category is @interface keyword. The use of category in Objective-C is to extend an existing class by appending behavior that is useful only in certain situations. In order to add such extension to existing classes, objective –C provides extensions and categories. The syntax used to define a category is @interface keyword. |
|