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
Write a program in C# for checking a given number is PRIME or not.
Distinguish between system.string and system.text.stringbuilder classes?
What does static mean in c sharp?
What do you understand by 'access specifiers' in C#?
Any problem found in vs.et
Can abstract class be instantiated c#?
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
What is the meaning of extention?
What is a predicate in c#?
What are get and set in c#?
How do you escape a character?
What are access modifiers in c#?
What is type cast in C#?
Is c# still popular?
What is the use of table aliases?