[cfaussie] Re: Multiple Level Inheritance

2006-09-19 Thread christophe albrech
agh. well said me heartyOn 9/19/06, Barry Beattie [EMAIL PROTECTED] wrote: He's talking about a scenario where inheritence goes up more than one level.ayeparent-child-grandchild The OO guy in me does ask tho - is this something that *has* to be done through inheritence, or can it be done

[cfaussie] Re: Multiple Level Inheritance

2006-09-19 Thread Shane Farmer
Jaarrrggg, Ye all be getting into the spirit of talk like a pirate day ;-) You can also access the overridden method in a parent class/object by super.countIt() inside count it (or anywhere for that matter). Super is just like this but the super class (as the name would suggest). Like

[cfaussie] Re: Multiple Level Inheritance

2006-09-18 Thread Mark Mandel
Barry - I don't think he's talking about multiple inheritence - which can't be done in CF. He's talking about a scenario where inheritence goes up more than one level. I just didn't want to get the issue confused. Regards, Mark On 9/19/06, Barry Beattie [EMAIL PROTECTED] wrote: yes Dale,

[cfaussie] Re: Multiple Level Inheritance

2006-09-18 Thread Barry Beattie
He's talking about a scenario where inheritence goes up more than one level. aye parent-child-grandchild The OO guy in me does ask tho - is this something that *has* to be done through inheritence, or can it be done throuhg composition? aye, aye. that be what I wuz drivin' at. shiver me

[cfaussie] Re: Multiple Level Inheritance

2006-09-18 Thread Dale Fraser
. Regards Dale Fraser http://dale.fraser.id.au -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Mandel Sent: Tuesday, 19 September 2006 13:40 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Multiple Level Inheritance Dale, multiple

[cfaussie] Re: Multiple Level Inheritance

2006-09-18 Thread Haikal Saadh
:[EMAIL PROTECTED] *On Behalf Of *Andrew Scott *Sent:* Tuesday, 19 September 2006 13:39 PM *To:* cfaussie@googlegroups.com *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

[cfaussie] Re: Multiple Level Inheritance

2006-09-18 Thread Dale Fraser
: [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

[cfaussie] Re: Multiple Level Inheritance

2006-09-18 Thread Andrew Scott
To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Multiple Level Inheritance 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

[cfaussie] Re: Multiple Level Inheritance

2006-09-18 Thread Andrew Scott
] On Behalf Of Haikal Saadh Sent: Tuesday, 19 September 2006 2:14 PM To: cfaussie@googlegroups.com 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