protected features are even more accessible than default features. : protected « Modifiers « SCJP






Only variables and methods may be declared protected. 
A protected is available to all classes in the same package. 
A protected is available with limitation to all subclasses of the class. 

protected = package + kids. 

package mypackage1;
 class MyClass {
    protected void myMethod() { ... }
 }

package mypackage2;
 class MySubclass extends MyClass {
   protected void enhancedMethod() {
     myMethod();
   }
 }








3.5.protected
3.5.1.protected features are even more accessible than default features.
3.5.2.Let's take a look at a protected instance variable of a superclass.
3.5.3.Child class accesses the protected variables through inheritance, not accessing it through a reference to an instance of the superclass.