Which collection will you use to store different types of
objects collection like... int, employee, student, object
etc.

Answer Posted / sumithra

We can use structure. Structure holds different types of data where as array is homogenous.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are generations and how are they used by the garbage collector?

592


list the steps in code compilation in c#?

563


Describe the difference between inline and code behind - which is best?

629


Explain what is copy constructor?

653


What is constants in c#?

489






What is the difference between list and array in c#?

546


What is string [] args in c#?

617


Can we inherit class that contains only one private constructor?

604


How to find out that the code is written as managed or un-managed code?

695


What is func c#?

600


What are the characteristics of c#?

569


What is the difference between disposing of () and finalize() methods in c#?

631


Can you declare a class or a struct as constant?

625


What are the value types in c#?

605


How do you serialize an object?

600