Generic Types and Methods
- slide 11 : 21
Another example of constraints
Two generic classes for which constraints are necessary
Two generic classes C and D - what is the problem?.
Two generic classes C and D - with compiler errors.
Two generic classes C and D - with the necessary constraints.