Multiple choice

Which of the following is not a characteristic of the Objective C category?

  1. A category can be declared for any class in the source code.

  2. It cannot be declared for any class, only for the classes that have original implementation of source code.

  3. All the methods in a category should be applicable to all the instances of the class.

  4. All the methods in a category should be applicable to all subclasses of the original class.

  5. At runtime, there's no difference between a method added by a category with its implementation.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A category can be declared for any class even without implemented code.