Best practice / alternative for referencing sub class logic & fields during super class initialization
I have a parent class that I must extend, and cannot change. The parent class follows the somewhat bad practice of calling non-final/overridable methods from it’s constructor. One of these methods must be overridden in my subclass, but the sub class code must be bypassed during the parent constructor call.
Best practice / alternative for referencing sub class logic during in super class initialization
I have a parent class that I must extend, and cannot change. The parent class follows the somewhat bad practice of calling non-final/overridable methods from it’s constructor. One of these methods must be overridden in my subclass, but the sub class code must be bypassed during the parent constructor call.