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