I have a protected method in superclass.
package com.pts.filter
public class a {
...
protected Filter callFilter(Object aInParam) {
return Filter.LowPass;
}
}
I am extending the class a.
package com.pts.filter.image
public class b extends a {
...
@Override
protected Filter callFilter(Object aInParam) {
...
return Filter.LowPass;
}
}
I get a compiler error saying "The method callFilter of type b must override or implement a supertype method". I am extending class a so I don't understand why it does not see the supertype method. Is it because the method I am trying to override is protected? From my understanding protected method is visible in subclasses.