InterviewSolution
Saved Bookmarks
| 1. |
Are generics in C# are same as the generics in java and templates in C++?(a) Yes(b) No(c) May be(d) None of the mentionedThe question was posed to me by my school principal while I was bunking the class.Origin of the question is Fundamental of Generics topic in division Delegates, Generics and LINQ of C# |
|
Answer» CORRECT answer is (b) No The best explanation: Although C# generics are similar to templates in C++ and generics in Java, they are not the same as either. In fact, there are some fundamental DIFFERENCES AMONG these THREE approaches to generics. |
|