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 |
Can abstract class have constructor c#?
What is a factory in c#?
Write a program in C# for checking a given number is PRIME or not.
What is the data encapsulation?
Explain streamreader/streamwriter class?
What is args c#?
What is internal and protected-internal accessspecifier in c#.net?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
write a program to find the biggest palindrome in the given string
What is reference c#?
What is difference between first and firstordefault?
An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differences.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)