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

What is keywords in c#?

493


Give examples for reference types?

538


What are the Types of caching

540


What is a framework in c#?

469


How do you serialize an object?

526






Is concurrent queue thread safe?

478


Is array a collection c#?

528


What is using in c#?

468


What are cshtml files?

487


How do you create dlls in .NET

574


Is it not possible to store a boolean value as a variable?

449


Which debugging tools you can use in the .NET ssSDK?

550


What is windows application in c#?

471


How are Windows programs different from normal C-programs?

1670


Is c# scripting language?

507