19 lines
527 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: typeinfo/packageaccess/HiddenC.java
2015-05-29 14:18:51 -07:00
// <20>2015 MindView LLC: see Copyright.txt
2015-04-20 15:36:01 -07:00
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(); }
} ///:~