Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 public class PCOA_Sample {
     public PCOA_Sample() {
         overridableMethod();
     }
 
     public PCOA_Sample(int ok) {
         nonOverridableMethod();
     }
    public PCOA_Sample(String ok) {
        privateNonFinalMethod();
    }
    public PCOA_Sample(long privateCallsOverridable) {
        privateCallsOverridable();
    }
    public void overridableMethod() {
    }
    private void privateNonFinalMethod() {
    }
    public final void nonOverridableMethod() {
    }
    private void privateCallsOverridable() {
        overridableMethod();
    }
    final static class FinalClass {
        public FinalClass() {
            aMethod();
        }
        public void aMethod() {
        }
    }
New to GrepCode? Check out our FAQ X