Couple of extra thoughts to add to what Jamie wrote.

I'd probably call the Contact object "AbstractContact" to imply it is
an incomplete object.

Add a function called getMethodCode() which returns a constant string
for the method types. getMethodCode() might return the string "email"
compared with getMethod() which might return a displayable string such
as "Email Contact".

You could then use the method code as part of a file name convention,
so you object creation could be like:

<cfset contact = createObject("component",methodCode & "Contact").init
()>

This idea removes the need to use switch/if statements in the code.

Regards
Kevan



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to