|
I
don't expect there to be a way to do this, but i just thought i'd check.
From
within a subtype, you can of course use the super keyword to call a method of
the same name in the supertype.
super.myMethod()
Is
there a way to do this from outside the subtype? For example
<cfset mySubType =
createObject('component','SubType').init() />
<cfset mySubType.super.myMethod()
/>
This doesn't work, i'm
just trying to express the idea clearly.
My 2 workarounds if
there is no direct way to do this would be either to create a function in the
subtype to return the value from the supertype, or to add another getter of a
different name in the supertype.
???
|
- Re: [CFCDev] calling a supertype from outside the subtype Nando
- Re: [CFCDev] calling a supertype from outside the sub... Barney Boisvert
- RE: [CFCDev] calling a supertype from outside the... Nando
- RE: [CFCDev] calling a supertype from outside... Nando
- Re: [CFCDev] calling a supertype from out... Barney Boisvert
- RE: [CFCDev] calling a supertype from out... Roland Collins
- Re: [CFCDev] calling a supertype fro... Barney Boisvert
- RE: [CFCDev] calling a supertype... Roland Collins
- RE: [CFCDev] calling a supertype fro... Nando
