Generic Types and Methods
- slide 16 : 21
Generic Classes and Inheritance
Can a generic/non-generic class inherit from a non-generic/generic class?
Legal subclassing
A generic subclass of a non-generic superclass
A generic subclass of a constructed superclass
A generic subclass of generic superclass
Illegal subclassing
A non-generic subclass of generic superclass
Class
IntSet
Class
Set<T>
Possible and impossible subclasses of
Set
classes.