I don't usually post something this simple, but this issue kept me scratching my head for while.
I'm trying to override a method in a subclass, but I get the following error message:
My BitCompressor.java
iextends Compressor.java
and attempts to override its encodeInput(...)
method, but when I compile, I get the following error: error: method does not override or implement a method from a supertype
The screenshot above shows the original method (middle), the subclass trying to override that method (top) and the error (bottom).
Any ideas? Thank you.