Calling overridden parent method from parent method

Posted by Yisroel on Stack Overflow See other posts from Stack Overflow or by Yisroel
Published on 2010-04-26T20:36:29Z Indexed on 2010/04/26 20:53 UTC
Read the original article Hit count: 257

Filed under:
|

Heres the situation. Component B extends component A and overrides the init method to accept a different parameter. A also has a create method that calls init.

If i have an instance of B and i call create, its calling the wrong init - it calls init in B, where i need it to call init in A.

I dont want to call super.init() as there may not always be a super. Is there any way to specify to call the init in the parent component?

© Stack Overflow or respective owner

Related posts about coldfusion

Related posts about cfc