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
List the differences between method overriding and method overloading?
What is the difference between Decorator and Adapter pattern?
What is difference between assembly and namespace?
what is IComparable
What is difference between abstract class and interface in c#?
What are the steps to create a webservice and consume it?
what is a constructor? What is a destructor?
What is difference between string and stringbuilder in c#?
What is callback method in c#?
What does it mean?
How to create multi-dimensional array?
Are enums static c#?
What is the difference between c and c# programming?
How do you prevent a class from being inherited?
What is datetime minvalue in c#?