Generic Subclass

Java-Generic Subclass

Generic Subclass It is perfectly acceptable for a non-generic class to be the superclass of a generic subclass. For example : The NonGen is not generic, no type argument is specified. Thus, even though Gen declares the type parameter T, it is not needed by (nor can it be used by) NonGen. Thus, NonGen is … Read more…