C# Programming - Generics - Discussion

Discussion :: Generics - General Questions (Q.No.3)


Which of the following statements are valid about generics in .NET Framework?

  1. Generics is a language feature.
  2. We can create a generic class, however, we cannot create a generic interface in C#.NET.
  3. Generics delegates are not allowed in C#.NET.
  4. Generics are useful in collection classes in .NET framework.
  5. None of the above

[A]. 1 and 2 Only
[B]. 1, 2 and 3 Only
[C]. 1 and 4 Only
[D]. All of the above
[E]. None of the above

Answer: Option C


No answer description available for this question.

Chinmay said: (Mar 30, 2015)  
C# allows the creation of generic interface and delegates. So 1, 2, 3, 4.

Anuhya said: (Sep 26, 2016)  
Please explain it more.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.