Multiple choice technology

We can obtain the getter and setter methods of property using

  1. @interface and @implement

  2. @property and @synthesis

  3. @category and @protocol

  4. none

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

The @property directive declares accessor methods in the interface, and @synthesize implements them in the implementation. This combination automatically generates getter and setter methods for instance variables.