Is it a valid design to extend an generic class without specifying a type parameter. I don't really care about the type parameter and want to discontinue the generics under my class's hierarchy.
E.g.,: if there is a class A<T,U>
where T
and U
are type parameters.
class B extends A { ... }
Also, is it possible to specify one parameter and skip the other? What will be the syntax? Following did not work:
class C<U> extends A<?,U> { ... }