Which collection will you use to store different types of
objects collection like... int, employee, student, object
etc.
Answer Posted / rasik bihari
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 |
Post New Answer View All Answers
For read-only operation which property you have to designated?
Describe the types of comments in c#?
What are abstract classes in c#?
What are access modifiers in c#?
What is the importance of closing an ado.net application?
What is a deadlock lock?
Can arraylist hold primitive types?
What is field in c#?
What is polymorphism in c sharp?
What happens when thread sleep () method is called?
What is difference between string and stringbuffer in c#?
Difference between a sub and a function in c#.
What is a datacontract?
Explain how can you clean up objects holding resources from within the code?
What is Delegate and what is it used for ?