Is there a way to \"inherit\" imports?
Example:
Common enum:
public enum Constant{ ONE, TWO, THREE }
Base clas
No, you can't inherit an import. If you want to reference a type within a class file without using the fully-qualified name, you have to import it explicitly.
But in your example it would be easy enough to say
public Sub extends Base {
public Sub() {
register(Constant.TWO, "blabla"); // without import: Constant.TWO
}
}