What are Generics? Where do we use them.
Answer Posted / ritz
Generics was introduced in Framework 2.0
With generics we can have typed classes. While defining
class we simply give placeholders and when we create
objects of that class we declare the placeholder to be of
some type(like int, double, string, etc.) and from that
point on our object gets bind to that type only.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the procedure to add assemly to gac to make it shared one?
Different between .net & j2ee ?
What exactly is being serialized when you perform serialization in .net?
Difference abstract class and interface in .net?
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?
Explain how viewstate is being formed and how it's stored on client in .net?
Explain what are an object and a class?
How to produce an assembly?
Explain what is a manifest in .net?
What are an object and a class?
What are the deferred execution and the immediate execution in linq?
What is new in .net core?
Tell us the difference between managed and unmanaged code?
What is the advantage of packaging over xcopy in .net?
Difference between abstract class and interface in .net?