In Java, is there a way to have an access modifier which is essentially private, except that this method can be accessed by children? I am developing a program in which there are several methods which are needed by the children of a certain class (and want to avoid duplication), but I don't want to make it public as I do not want the objects these childish classes are instantiated in to have access to these methods.
If there is no such thing, what would you guys recommend as to achieving best practice on this issue?
Preferably in the same package - protected
doesn't fulfil this.