Thursday, January 31, 2019

reducing the visibility of the overriddenmethod subclass

package com.concretepage;
public class ReducingtheVisibilityOftheOverriddenMethod {

public void method1() {
System.out.println("I am inside method1");
}

}


package com.concretepage;
public class ReducingtheVisibilityOftheOverriddenMethodSubClass extends ReducingtheVisibilityOftheOverriddenMethod {
private void method1() {
}
}

No comments:

Post a Comment