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 and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 11 : 21
Object-oriented Programming in C#
Generic Types and Methods
Another example of constraints

Two generic classes for which constraints are necessary

/user/normark/oop-csharp-1/sources/c-sharp/generics/constraints/class-struct.csTwo generic classes C and D - what is the problem?.


/user/normark/oop-csharp-1/sources/c-sharp/generics/constraints/class-struct-error.csTwo generic classes C and D - with compiler errors.


/user/normark/oop-csharp-1/sources/c-sharp/generics/constraints/class-struct-constraints.csTwo generic classes C and D - with the necessary constraints.