I would definitely go with approach #1, if for no other reason is
than it would make your collection class work more like a regular
collection object. I don't see what advantage there would be to
using approach #2.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"R Avery" wrote in message
...
I have been thinking of various ways to populate my collection
classes
with its children.
1) I could create the .Add function of the collection class to
accept a
child object as an argument, which then adds the child to the
collection.
2) I could create the .Add function of the collection class to
not
accept any arguments, and to just return a new child object
I do not know when one method would be preferred over the
other. Can
anyone help? Thanks!