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 the execution entry point for a c# console application?
What is the difference between yield and return?
How do I edit a dll file?
Why do we use void in c#?
write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5
Define using statement in c#?
Why do we Need of static class in c#?
Explain the difference between arraylist and array and in c#?
What is namespace explain with example?
What are custom attributes in c#?
What is variable in c#?
What is interface c#?
what happens if you inherit multiple interfaces and they have conflicting method names?
How does bitwise work?
Can a method return multiple values in c#?