2015-04-20 15:36:01 -07:00
|
|
|
//: typeinfo/packageaccess/HiddenC.java
|
|
|
|
package typeinfo.packageaccess;
|
|
|
|
import typeinfo.interfacea.*;
|
|
|
|
import static net.mindview.util.Print.*;
|
|
|
|
|
|
|
|
class C implements A {
|
2015-05-05 11:20:13 -07:00
|
|
|
@Override
|
2015-04-20 15:36:01 -07:00
|
|
|
public void f() { print("public C.f()"); }
|
|
|
|
public void g() { print("public C.g()"); }
|
|
|
|
void u() { print("package C.u()"); }
|
|
|
|
protected void v() { print("protected C.v()"); }
|
|
|
|
private void w() { print("private C.w()"); }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class HiddenC {
|
|
|
|
public static A makeA() { return new C(); }
|
|
|
|
} ///:~
|