Sure, but is this actually some kind of issue for you? OK, "private" in CF = "protected" in Java. I'd be interested to hear what else you have to bring up. By the way, there is no "true inheritance". As long as something follows Liskov's substitution principle, allows for method overriding, and in general allows an object to model an IS-A relationship, it qualifies as inheritance.
I guess I'm just not following what there is about CF's particular implementation of inheritance that you find problematic. On Thu, Apr 24, 2008 at 1:13 AM, Andrew Scott <[EMAIL PROTECTED]> wrote: > Well that's what I thought and I did state in true inheritance, private > methods are not accessible to children. > > > > CFC's are not true OO to begin with, so you can't expect it to confirm to > true inheritance. Or interfacing for that matter. > > > > Maybe one day, maybe not J > > > > I know there is some more, but for the life of me I can't think of them > off the top of my head right now. > > > > > > Andrew Scott > Senior Coldfusion Developer > Aegeon Pty. Ltd. > www.aegeon.com.au > Phone: +613 9015 8628 > Mobile: 0404 998 273 > > > > > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Brian Kotek > *Sent:* Thursday, 24 April 2008 1:54 PM > *To:* [email protected] > *Subject:* [CFCDEV] Re: intialising cfcs > > > > I'm interested to hear what you think is lacking in the implementation of > inheritance with CFCs, or what you think is there in CF8 that CF 7 or 6.1 > didn't do. > > Yes, a superclass's private methods are available to subclasses, so in > that respect they are actually mimicking the "protected" access modifier > that one might find in Java. > > On Wed, Apr 23, 2008 at 10:40 PM, Andrew Scott < > [EMAIL PROTECTED]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
