Mark,

 

Following the rest of the thread, Coldfusion until version 8 really doesn't
have inheritance as such. It can be done using the following line of code.

 

<cfcomponent extends="component.facility.staff">

</cfcomponent>

 

However true inheritance, means so much more than what Coldfusion offers.
Was that what you mean, so if teacher has overridden a class you can do
something like this.

 

<cffunction name="someMethod">

  <cfargument name="arg1" />

  <cfargument name="arg2" />

 

  < cfset Super(arg1, agr2) /> <!--- I think that is right, off the top of
my head -à

  <!--continue with your function à

</cffunction>

 

HTH?

 

I will ask one question before I go and double check it, if a cfc is
extended from another. Does the parent's private methods still become
available in the child cfc? I know in true inheritance this is not the case,
but for the life of me I am having a mental blank on that one?

 

 

Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  9015 8628
Mobile: 0404 998 273

 


--~--~---------~--~----~------------~-------~--~----~
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