What are Generics?

Answer Posted / rt

Generics was a new addition in .NET 2.0
With generics we can create reusable classes. It promotes code reusability.
With generics we create classes with placeholders(<T>), and while creating object of that class we declare a value for that placeholder(int,double,etc) and from then on that object is bind to that type.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we overload constructors?

502


State the top.NET class that everything is derived from?

527


How objects are stored in memory?

505


Explain how many types of exception handlers are there in .net?

483


What is a must for multitasking

573






What is string programming language?

450


What are the fundamental oop concepts?

538


Write a program in c# to find the angle between the hours and minutes in a clock?

497


What is data dictionary in c#?

498


What is a function c#?

499


What is ulong in c#?

582


Is array ienumerable c#?

479


What is private readonly in c#?

530


What is typeof undefined?

512


What is polymorphism in c sharp?

533