I have an abstract base class A and I have some concrete classes B and C extending A and implementing all abstract methods.
abstract class A {...}
class B extends A {...}
class C extends A {...}
Now I would like to add some functionality to A, but I can not touch A, B and C. So I thought it might be possible to write a generic class D extending any of the concrete classes B or C.
class D<T> extends <T extends A> {...}
Is it possible? And if so what is the correct syntax?