Lecture overview -- Keyboard shortcut: 'u'  Previous page: Generic equality interfaces -- Keyboard shortcut: 'p'  Next page: Generic Methods [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 16 : 21
Object-oriented Programming in C#
Generic Types and Methods
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

 

/user/normark/oop-csharp-1/sources/c-sharp/set/inheritance/inh.csPossible and impossible subclasses of Set classes.