I have the following class hierarchy scenario; Class A has a method, and class B extends class A, where I want to call a method from a superclass from a locally nested class. I hope the skeletal structure illustrates the scenario more clearly. Does Java allow such calls?
class A{ public Integer getCount(){...} public Integer otherMethod(){....} } class B extends A{ public Integer getCount(){ Callable<Integer> call = new Callable<Integer>(){ @Override public Integer call() throws Exception {
sachink
source share