I have a base class that needs to be built with a parameter. In the child class, I need to prepare this parameter before building the base class, but in Java super need to be called before anything else. What is the best way to handle this situation (see a simple example below).
class BaseClass { protected String preparedParam; public BaseClass(String preparedParam) { this.param = param; } } class ChildClass { public ChildClass (Map<String, Object> params) {
java super constructor
michal.kreuzman
source share