| 1. | For the code snippet given below, which of the following statements are valid? public class MyContainer<T> where T: class, IComparable 1 Class MyContainer requires that it's type argument must implement IComparable interface. 2 Compiler will report an error for this block of code. 3 There are multiple constraints on type argument to MyContainer class. 4 Class MyContainer requires that its type argument must be a reference type and it must implement IComparable interface.
|
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
