|
Thanks Nolan, that’s what I thought.
Just one of those days, J, Phil From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Nolan Erck Unless I’m really misunderstanding
your question, yes, you’re correct. <cfcomponent name=”baseA”> <cffunction name=”init”
returnType=”baseA”>
<cfset variables.baseVar1 = “123”>
<cfset variables.baseVar2 = “foo”>
<cfreturn this> </cffunction> </cfcomponent> That’s your base class,
right?. Now if I have a class that extends it: <cfcomponent
name=”extendedClassB” extends=”baseA”> <!--- some code - - >
<cfset super.init()> <!--- some code - - > </cfcomponent> ….that doesn’t change the
behavior of baseA. And no matter where or when you call baseA’s
init() method, baseA’s behavior won’t change until you chase the
baseA.cfc class itself. So you can call baseA.init() (or in your
email/example, super.init() ) and it will always do the same thing. Nolan Erck -----Original Message----- If I have a base object with, say,
10 properties set (using its setters to put into variables. ) in the init function
and in a component that extends the base object I make a call using
super.init(), I can still have a return type for the base object’s init
function be that base object (something like com.mysite.base), right? And that
will set the 10 base properties for the extended component, right? Thanks, Phil Phillip Duba The
information contained in this e-mail is confidential and may contain privileged
information exempt from disclosure under applicable law. The information is
intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, employee, or agent responsible to
deliver it to the intended recipient, you are hereby notified that any use,
dissemination, distribution, or copying of this communication is strictly prohibited.
If you have received this e-mail in error, please delete the message from your
computer and immediately notify the sender by telephone (you may call collect)
at 916-569-5400 or by e-mail to [EMAIL PROTECTED] Thank you. 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). 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). 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). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
