Default modifier for method : default modifier « Modifiers « SCJP






package mypackage;
 class MyClass {
    void myMethod() { ... }
 }

package mypackage;
 class MySubclass extends MyClass {
   void enhancedMethod() {
     myMethod();
     // other functionality here
   }
 }








3.3.default modifier
3.3.1.The default access mode (no modifier)
3.3.2.The following declarations are illegal for default modifier
3.3.3.Default is the name for empty modifier.
3.3.4.Default modifier for method