Are generics in C# are same as the generics in java and templates in C++?

Quang Hiếu

New member
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 mentioned
 
Answer: b
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.
 

Tìm kiếm

Back
Top