I would _try_ to have a uniform approach so that a P object is always a P object, not P.1 and P.2 As long as the logic is "has a property that might not be used" instead of "might have a property that will be used", then I would say you dont have a problem.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Douglas Knudsen Sent: 15 September 2005 17:16 To: [email protected] Subject: [CFCDev] object compostion question Say I have object A. A has a property x. x is an Array of object P. P has properties m,n. Now I create a new object B that has a property y where y is an Array of object P. But in B's case, P needs an extra property e. Is it common to create two differnt P objects in this case? Or just create one P with properties m,n, and o when A uses P it can just ignore o. I know, common response is 'It depends'. I'm just looking to see if there is a "watch out this approach will muck things up usually" or "seems ok". In my case P is an object with Empoyee information. Sometimes it needs to have say 3 properties, other times 4. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
