For the code snippet given below, which of the following statements are valid? public class MyContainer<T> where T: IComparabte { // Insert code here } 1. Class MyContainer requires that it's type argument must implement IComparabte interface. 2. Type argument of class MyContainer must be IComparabte. 3. Compiler will report an error for this block of code. 4. This requirement on type argument is called as constraint.
Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.
Question context
This question is part of 🧩 C# Programming within the broader 💻 Programming subject and appears in the DemoPaper-Pakistan preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.