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
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
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,
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
.
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
:[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
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
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
] 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