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.

Delegator.java 238B

123456789101112
  1. package test1;
  2. class SuperDelegator {
  3. public int f(int p) { return p + 1; }
  4. public static int g(int p) { return p + 1; }
  5. }
  6. public class Delegator extends SuperDelegator {
  7. public int run() {
  8. return f(3) + g(10);
  9. }
  10. }