TArrays with inherited objects problem

Thank you!