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
Is xml tags are case sensitive?
What's the difference between a method and a procedure?
What is the difference between package and interface?
Describe ado.net?
What is the difference between dispose() and finalize() methods in c#?
What is datagridview in c#?
What is an event in c#?
What is double c#?
What is system console writeline in c#?
Explain a MSIL ? Why is it appreciated by all developers?
what class is underneath the sortedlist class?
What does protected internal access modifier mean?
Can we inherit a private class in c#?
How do you create partial methods?
How can you read 3rd line from a text file?