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

List the differences between method overriding and method overloading?

482


What is the difference between Decorator and Adapter pattern?

518


What is difference between assembly and namespace?

469


what is IComparable

549


What is difference between abstract class and interface in c#?

469






What are the steps to create a webservice and consume it?

468


what is a constructor? What is a destructor?

520


What is difference between string and stringbuilder in c#?

459


What is callback method in c#?

482


What does it mean?

547


How to create multi-dimensional array?

597


Are enums static c#?

495


What is the difference between c and c# programming?

443


How do you prevent a class from being inherited?

527


What is datetime minvalue in c#?

569