Multiple choice

Which of the following statements is false regarding 'Extensions' in Objective C?

  1. It is mandatory to have the source code at compile time to specify extension in the class.

  2. The methods declared by a class extension are implemented in the @implementation block for the original class.

  3. @interface ClassName () @end is the syntax for extension.

  4. A class extension can not add its own properties and instance variables to a class.

  5. Class extensions are called “anonymous” categories.

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

In contrast to categories, a class extension can add own properties and instance variable to a class.