title: How do I access methods of a class inside of an array
body: <p>I have a custom class that holds information about a car like the stock number, vin and so on. I used properties as a getter and setter to set all the information. I then make an instance of this class and store it in an NSMutableArray. So now I have an array that contains all the different cars on our lot.</p>
  
  <p>My question is how can I access the class members directly in the array:</p>
  
  <pre><code>Veh *veh = [[Veh alloc] init];
  veh.Stock = @"P9494";
  NSMutableArray *array = [[NSMutableArray alloc] init];
  [array addObject:veh];
  // here is what I want to do, access Stock directly from the array
  NSString* string = [[array objectAtIndex:0].Stock];
  </code></pre>