Which collection will you use to store different types of
objects collection like... int, employee, student, object
etc.
Answers were Sorted based on User's Feedback
I would use array list. Every element in an array list is
of object type. Since object class is base class of all the
types in .net or any custom class so it will be possible to
store different types of objects like int,employee(Custom
class), student(custom class), object (base class itself)
into an Array list collection.
| Is This Answer Correct ? | 15 Yes | 12 No |
Answer / sumithra
We can use structure. Structure holds different types of data where as array is homogenous.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we inherit an abstract class in another abstract class. If no why and If yes how..?
What is the usage of Enumeration in C# Programming and is it good to use or not ?
Is list immutable in c#?
Is arraylist generic in c#?
Is lazy thread safe c#?
What is the difference between interface and inheritance in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is dependency injection?
What does the initial catalog parameter define in the connection string?
What's the difference between an integer and int?
How to implement delegates in c#.net
What is null in database?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)