class Base {
public Base(String s) {
System.out.println("Base(" + s + ")");
}
}
class Sub extends Base {
private static final String CLASS_DUMMY_STRING = "CLASS_DUMMY_STRING";
private final String INSTANCE_DUMMY_STRING = "INSTANCE_DUMMY_STRING";
public Sub() {
//(1)
}
private static String getClassString() {
return CLASS_DUMMY_STRING;
}
private String getInstanceString() {
return INSTANCE_DUMMY_STRING;
}
}
Login in to like
Login in to comment