Lecture overview -- Keyboard shortcut: 'u'  Previous page: Constraints: Strings of comparable elements -- Keyboard shortcut: 'p'  Next page: Variance -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Generic Types and Methods - slide 11 : 21

Another example of constraints
Two generic classes for which constraints are necessary
class-struct.cs
Two generic classes C and D - what is the problem?.
class-struct-error.cs
Two generic classes C and D - with compiler errors.
class-struct-constraints.cs
Two generic classes C and D - with the necessary constraints.