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 is a multicast delegate in c#?
Can you prevent your class from being inherited and becoming a base class for some other classes?
What is string empty?
What is view model in c#?
Explain the difference between pass by value and pass by reference.
What is yield break in c#?
What is the default value of date?
Explain use of abstract and sealed classes in c#?
what are the events in delegate?
hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......
Can namespace contain the private class?
Explain dataadapter.update method in .net?