-----Original Message-----
From: Brian Kotek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] ObjectsFirst, is a Vendor truly a subtype of Person? This doesn't seem right. To me, a Vendor is usually a company, not a person.Also, when you say Address is a "subType", do you mean that Address extends Employee? If so, this is not correct. Address should be composited into Employee.The choice to break things like phone numbers and email into separate classes is up to you, depending on the behavior you need. If you are just getting the phone number, you probably don't need a separate class. If you need to validate the number, grab only the area code, handle country codes, etc., then a separate phoneNumber object might make sense.regards,Brian-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, Agha
Sent: Wednesday, March 03, 2004 1:27 PM
To: '[EMAIL PROTECTED]'
Subject: [CFCDev] ObjectsHi,
I am designing an Object Model for one of my applications and this is my first time doing that. I have a Person Class as the base class and Employee, Customer, Vendor Classes extend that class. I also have an Address Class that works as a subType of each of the subClasses. The Person Class also holds communication information like homePhone, cellPhone, workPhone, fax, email etc. I was wondering if it would be worth doing to create a separate class for communication attributes to work as a subType for Person Class. Does it seem to be a good way or just another step?
Any thoughts will be appreciated
Agha
----
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]
Littler Mendelson, P.C.
http://www.littler.com
----
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]
Littler Mendelson, P.C.
http://www.littler.com
