Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

C

Question: Can you store multiple data types in System.Array?
Answer: You never use System. Array directly. You can store items whose data type is equivalent to, or derived from, the data type of the array. This means that you can store multiple data types, provided that they derive from a common base type, or implement a common interface.
Example:
If you want to store different types, use System.Collections.ArrayList or object[]
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook