Question
Multiple level inheritance
i've got 3 cfcs: a, b, and c.
<cfcomponent name="a">
<cffunction name="Init" access="public" returntype="a">
<cfreturn this />
</cffunction>
</cfcompnonent>
<cfcomponent name="b" extends="a">
...
</cfcompnonent>
<cfcomponent name="c" extends="b">
...
</cfcompnonent>
I then try to call:
bobo = CreateObject("Component", "c").Init();
But i'm getting "The value returned from the Init function is not of type a".
Any Ideas?
Should i have b and c override the init() method and thier version call each that one's base super or something?
<cfcomponent name="a">
<cffunction name="Init" access="public" returntype="a">
<cfreturn this />
</cffunction>
</cfcompnonent>
<cfcomponent name="b" extends="a">
...
</cfcompnonent>
<cfcomponent name="c" extends="b">
...
</cfcompnonent>
I then try to call:
bobo = CreateObject("Component", "c").Init();
But i'm getting "The value returned from the Init function is not of type a".
Any Ideas?
Should i have b and c override the init() method and thier version call each that one's base super or something?