I have a some simple Java code that looks similar to this in its structure:
abstract public class BaseClass { String someString; public BaseClass(Str
Another way is call super() with the required argument as a first statement in derived class constructor.
public class Sup { public Sup(String s) { ...} } public class Sub extends Sup { public Sub() { super("hello"); .. } }