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 |
When do you generally use a class over a struct?
Explain about Destructor method?
What is deferred execution in c#?
FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ?EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER?????PLEASE REPLY...
Which control cannot be placed in mdi?
Can constructor be protected in c#?
What is type safe in c#?
What's the difference between class and object?
What is the difference between method overriding and method overloading?
what is read only and constant
can you declare an override method to be static if the original method is not static?
Can you create enumerated data types in C# ?
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)