Which collection will you use to store different types of
objects collection like... int, employee, student, object
etc.
Answers were Sorted based on User's Feedback
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 |
Answer / sumithra
We can use structure. Structure holds different types of data where as array is homogenous.
Is This Answer Correct ? | 0 Yes | 0 No |
What does exclamation mark mean in access query?
How to make a class not inheritable other than sealed?
What is window application in c#?
What is file extension of webservices?
What is the difference between interface and inheritance in c#?
What is windows forms in c#?
What is data quality assurance?
What is the use of static members with example using c#.net.
What is difference between encapsulation and abstraction in c#?
What is hash c#?
What is delegates & multicast delegate?
Why do we need private constructor in c#?