diff options
Diffstat (limited to 'src/test/misc/en/Foo.java')
-rw-r--r-- | src/test/misc/en/Foo.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/test/misc/en/Foo.java b/src/test/misc/en/Foo.java new file mode 100644 index 0000000..762dcda --- /dev/null +++ b/src/test/misc/en/Foo.java @@ -0,0 +1,52 @@ +package test.misc.en; + +class Foo { + + public Foo() {} + + public Foo(String test) {} + + private void foo() { + System.out.println("qwe"); + } + + static class Bar extends Foo { + void bar() { + System.out.println("1"); + //((Foo)this).foo(); + } + } + + static class Bar1 extends Bar { + void bar() { + super.bar(); + //System.out.println("2"); + //((Foo)this).foo(); + } + } + + static class Bar2 extends Bar1 { + void bar1() { + super.bar(); + } + } + + public static void main(String[] args) { + new Bar2().bar(); + } + + public int testfin() { + + int i; + + try { + System.out.println(); + i = 0; + } finally { + System.out.println(); + } + + + return i; + } +} |