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 do you mean by saying a "class is a reference type"?
What is the base class from which all value types are derived?
What is the difference between throw and throw ex?
what is difference between is and as operators in c#?
What is difference between assembly and namespace?
Difference between call by value and call by reference in C#?
Explain the difference between “as” and “is” operators used in c#?
Describe the ways of cleaning up objects in c#.
What is stringbuilder c#?
Is int a struct in c#?
Is and as in c#?
If the original method is not static you can declare an override method to be static or not?
what class is underneath the sortedlist class?
Different between method overriding and method overloading?
what is the difference between interface and multiple interface?