Chapter 11. Working with Arrays
Arrays are one of the most fundamental and commonplace data structures of any programming language. Both C# and Java treat arrays as first-class objects, meaning that arrays are allocated on the heap. Although arrays are treated as objects by the runtime, for the most part you use arrays primarily as containers for holding elements, as in this example:
int[] arr = new int[5];
Although arr is an object, you would not inherit from it; instead, you would use arr primarily for storing five integers.
 |