I would like to override a 3rd party, open-source final class’s non-final method.
final class A
{
void put(obj a)
{...}
obj get()
{...}
}
Please tell me how to override the get() and put() methods, yet still retain the other behaviour and functionality of this class.
It’s open source: fork it, and make the class non-final.
You won’t be able to extend it without making it non-final.