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?
I solved this by extending the
createmethod to callsuper.createandsuper.init. theres still a call to the child init that fails, but overall it works.I would still prefer a solution that works on the parent init without having to override the create.