class Mineral {
static String shiny() { return "1"; }
}
class Granite extends Mineral {
public static void main(String [] args) {
String s = shiny() + getShiny();
s = s + super.shiny();
System.out.println(s);
}
static String getShiny() { return shiny(); }
}
結(jié)果為:()