How to avoid “Calling non-final function validate in constructor” if class design require it?
I have some base class which is wrapper over BitSet
. It has multiple descendants. In base class I want to force descendants to implement validate
method for constructor which accepts long. It will be different for each child. So I’ve created the following base class: