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.
 
???
 
 
 

Reply via email to