Consider the following set up:
- SomeFilter extends Filter
- Filter implements Runnable
- Filter provides run() implementation
Is there a way to make SomeFilter use it’s super‘s run() and bit more?
The logic inside run() is generic enough for
- MyFilter extends Filter
- MyOtherFilter extends Filter
but is not for SomeFilter, that would like to use it’s super’s run() and add a few extra lines of code to handle it’s own specific case?
Is there way to do it, other then for SomeFilter to override run() altogether?
Yes. Inside SomeFilter: