package protectedPack; import java.lang.String; public class protectedFunInPackage { protected String foo() { return "OK"; } }