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


Please Help Members By Posting Answers For Below Questions

What is the execution entry point for a c# console application?

617


What is the difference between yield and return?

539


How do I edit a dll file?

544


Why do we use void in c#?

549


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

1954






Define using statement in c#?

601


Why do we Need of static class in c#?

721


Explain the difference between arraylist and array and in c#?

590


What is namespace explain with example?

525


What are custom attributes in c#?

571


What is variable in c#?

613


What is interface c#?

541


what happens if you inherit multiple interfaces and they have conflicting method names?

556


How does bitwise work?

597


Can a method return multiple values in c#?

519