Multiple choice technology

Syntax of declaring a property accessor method is

  1. @property <type> <name>;

  2. @property (<parameters>) <type> <name>;

  3. @property (<parameters>) <name>;

  4. none

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

Property declarations require the @property directive followed by optional attributes in parentheses, then the type and name. The full syntax is @property (attributes) type name; where attributes like nonatomic, strong, etc. are optional but commonly used.