CObject* GetAt( int nIndex ) const;
nIndex
An integer index that is greater than or equal to 0 and less than or equal to GetUpperBound().
Returns the array element at the specified index.
The CObject pointer element currently at this index; NULL if no element is stored at the index.
CObArray array;
array.Add( new CAge( 21 ) ); // Element 0
array.Add( new CAge( 40 ) ); // Element 1
ASSERT( *(CAge*) array.GetAt( 0 ) == CAge( 21 ) );
CObArray::SetAt, CObArray::operator []