crazyboybert
Programmer
Hi all
What is the best way to give an object a publicly accesible collection of 0...* length regardless of the type of object stored in the collection. At the moment I commonly use ArrayLists for this by having a publicly accessible ArrayList and private member ArrayList pair into which I put the objects that make my collection. Is this the best way of doing this or is there a more correct method of giving an object a collection as a property?
Rob
Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
What is the best way to give an object a publicly accesible collection of 0...* length regardless of the type of object stored in the collection. At the moment I commonly use ArrayLists for this by having a publicly accessible ArrayList and private member ArrayList pair into which I put the objects that make my collection. Is this the best way of doing this or is there a more correct method of giving an object a collection as a property?
Rob
Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927