您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SuperIsWeird.java 426B

123456789101112131415161718192021222324
  1. class Super {
  2. static void goo() {}
  3. static int getInt() { return 42; }
  4. }
  5. public class SuperIsWeird extends Super {
  6. static void foo0() {
  7. super.goo(); // error
  8. }
  9. void foo1() {
  10. Object o = super; // error
  11. }
  12. void foo2() {
  13. super.goo(); // no error
  14. }
  15. static int v0 = super.getInt(); // error
  16. Object v1 = super; // error
  17. int v2 = super.getInt(); // no error
  18. }