You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProceedDefault.java 301B

12345678910111213
  1. package test5;
  2. interface ProceedDefaultI {
  3. default int foo() { return 13; }
  4. }
  5. public class ProceedDefault implements ProceedDefaultI {
  6. public int run() { return bar(); }
  7. public int foo() { return 1700; }
  8. public int bar() {
  9. return foo() + ProceedDefaultI.super.foo();
  10. }
  11. }