| generics/constraints/class-struct.cs - Two generic classes C and D - what is the problem?. | Lecture 11 - slide 11 : 21 Program 1 |
/* Example from Hansen and Sestoft: C# Precisely */
// What are the problems?
class C<T>{
T f = null;
}
class D<U>{
U? f;
}