Better explained... But I am sure if it is private, you can't use it I can't seem to recall.
Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Haikal Saadh Sent: Tuesday, 19 September 2006 2:14 PM To: [email protected] Subject: [cfaussie] Re: Multiple Level Inheritance If you have: A.cfc: + countIt() B.cfc extends A + getSpeed(); + (inherits) countIt(); C.cfc extends B + (inherits) countIt(); + (inherits) getSpeed(); In this case, A, B and C all have the same countIt(); Now, if B overrode countIt() instead of simply inheriting it, then all other things being the same, A would have one countIt(), and B and C would have another countIt(); I'm not sure if that cleared or muddied it up... but have a go and look at a random javadoc... you can see how where certain things get inherited from... maybe a concrete example will help you visualise it better: http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.html That's the docco for JButton, a UI button. See the nice big line of inheritance? Dale Fraser wrote: > > So if I have > > > > A.cfc > > countIt() > > > > B.cfc > > getSpeed() > > > > and > > > > C.cfc > > > > Would be able to access countIt and getSpeed just not the super > version of getSpeed where it has been overridden. Or can it not access > countIt() at all? > > Regards > Dale Fraser > > http://dale.fraser.id.au > > > > > ------------------------------------------------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] > *On Behalf Of *Andrew Scott > *Sent:* Tuesday, 19 September 2006 13:39 PM > *To:* [email protected] > *Subject:* [cfaussie] Re: Multiple Level Inheritance > > > > Dale, > > > > That is correct, the super method will called the parent of the child > being called. So if you have a 3^ deep inheritance, the super will > call the parent 2^nd level up, and if that parent has a super then it > will call its parent. > > > > > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au <http://www.aegeon.com.au> > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > ------------------------------------------------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] > *On Behalf Of *Dale Fraser > *Sent:* Tuesday, 19 September 2006 1:31 PM > *To:* [email protected] > *Subject:* [cfaussie] Multiple Level Inheritance > > > > I have never used multiple level inheritance in CF but have a need. > > > > From what I read it works, although super can only access parent. > > > > Is this correct, any gotcha's I should be on the lookout for? > > Regards > Dale Fraser > > http://dale.fraser.id.au > > > > > > > > > > > > > > -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" 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/cfaussie -~----------~----~----~----~------~----~------~--~---
