If you haven't already done so, I suggest that you go back and look at your original code. Explain to yourself why it did what it did. Then you'll really 'get it'.
For example:
- How many TParent objects did you create ?
- Where did the others go to ?
- Why did both lists print out the same contents ?
- Are they in fact different lists ?
Cheers.
For example:
- How many TParent objects did you create ?
- Where did the others go to ?
- Why did both lists print out the same contents ?
- Are they in fact different lists ?
Cheers.