i'm not sure this is clear for me, but depending of context, you can:
1)inerhit class b frm a,
or
2)apply a decorator pattern
regards
salvatore
----- Original Message -----
From: "Douglas Knudsen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 15, 2005 6:16 PM
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]