1.

For the code set given below,which of the following statements are perfectly valid? public class MyContainer where T: IComparable { /* insert code here */ }

A. Class MyConatiner requires that its type arguement must implement Icomparable interface
B. There are multiple constraints on type arguement to MyContainer class
C. Type arguement of class MyContainer should be Icomparable
D. None of the mentioned
Answer» B. There are multiple constraints on type arguement to MyContainer class


Discussion

No Comment Found