title: Objective C: array of class object as property
body: <p>Is it possible in an Objective-C class to store an array of instances of another class as a property? </p>
  
  <p>Simple example: I have a class called "Classroom" and a class called "Students".</p>
  
  <pre><code>@interface Student
      @property int m_id;
  @end
  </code></pre>
  
  <p>...</p>
  
  <pre><code>@interface Classroom
      @property Student *m_students[20]; // this causes a compilation error: property cannot have an array or function type 'Student *[20]'
  @end
  </code></pre>
  
  <p>How can I do the equivalent of this?</p>