By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,703 Members | 1,400 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,703 IT Pros & Developers. It's quick & easy.

Is this a Best practice for Objects and Object Collections

P: n/a
Hi,

I work with a developer who thinks it is a best practice to have a shared
method in a Customer Class that returns a collection of Customers.

In my humble opinion we should have a Collection Builder class or go
directly to the data layer and have the data layer return the collection of
Customer objects depending upon how much you wish to abstract your data Layer.

To me it just seems odd to have the individual Customer class create own
collection, all the customer class should be concerned with is Individual
Object Methods and Properties.

Please Chime in and give me you opinions.
Thank You,

Chris lane



Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.