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
What is a dimensional array?
Does a loop recorder have to be removed?
What is the difference between finally and finalize block?
Are tuples immutable c#?
Can struct inherit from class c#?
What is int32?
What do you mean by casting a data type?
Explain the process of Serialization?
What is the Signification of the "new " keyword in C#? example
What do you mean by shared assembly?
Can private virtual methods be overridden in c#.net?
Name some properties of thread class.
Is stringbuilder faster than string concatenation c#?
What does string format do?
What is deferred execution?