Groups of Objects
We are now going to examine the support that the .NET bale classes have for data structures in ,which a number of similar objects are grouped together. The simplest such data structure is the ordinary array. which we. saw how to use in Chapter 2. The ordinary array is actually an instance of the clan System.Array, but Cf wraps its own syntax around this class. System. Array bat & advantage of being relatively efficient for accessing an individual element given its index,:and or Villein, its own C+ syntax, which obviously makes using it more intuitive. However. Array has the bus advantageous that you need to specify its size when you instantiate it. There is no facilitator adding. disconcerting. or removing elements later on. You also have to have a numeric index in order to be able to Ken. an element. This is not particularly useful is for example. you are dong a set of employee Scorecard and need to look up a given record from the name of the employee .