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 |
How do you implement multiple inheritance in .NET?
What is difference between ienumerable and list in c#?
How is lazy loading achieved?
if a method is marked as protected internal who can access it?
What is file extension of webservices?
Which function is the entry point for a DLL in MS Windows 3.1?
What is array and arraylist?
Why do we need interfaces in c#?
Why do we need constructor?
What is windows application in c#?
What are PE(Portable Executable)?
What are the types of methods in c#?