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.

Main.java 257B

1234567891011
  1. package protectedFieldRefInInner;
  2. public class Main extends protectedFieldRefInInner.p1.C {
  3. private int y = 4;
  4. class Inner {
  5. int foo() { return x = x + y; }
  6. }
  7. public static void main(String[] args) {
  8. new Main().new Inner().foo();
  9. }
  10. }