17 lines
503 B
Java
Raw Normal View History

2015-09-07 11:44:36 -06:00
// typeinfo/packageaccess/HiddenC.java
2015-06-15 17:47:35 -07:00
package typeinfo.packageaccess;
import typeinfo.interfacea.*;
class C implements A {
@Override
2015-11-03 12:00:44 -08:00
public void f() { System.out.println("public C.f()"); }
public void g() { System.out.println("public C.g()"); }
void u() { System.out.println("package C.u()"); }
protected void v() { System.out.println("protected C.v()"); }
private void w() { System.out.println("private C.w()"); }
2015-06-15 17:47:35 -07:00
}
public class HiddenC {
public static A makeA() { return new C(); }
2015-09-07 11:44:36 -06:00
}