MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / AnonymousA

Class AnonymousA

reflection/AnonymousImplementation.java:8–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import reflection.interfacea.*;
7
8class AnonymousA {
9 public static A makeA() {
10 return new A() {
11 @Override public void f() {
12 System.out.println("public C.f()");
13 }
14 public void g() {
15 System.out.println("public C.g()");
16 }
17 void u() {
18 System.out.println("package C.u()");
19 }
20 protected void v() {
21 System.out.println("protected C.v()");
22 }
23 private void w() {
24 System.out.println("private C.w()");
25 }
26 };
27 }
28}
29
30public class AnonymousImplementation {
31 public static void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected