Introduction to compound data types 2. Features of arrays 3. Array declaration 4. Example problem - metres to yards, feet and inches conversion 5.1. The programming example given here makes use of a default constructor.
Compound types are usually programmer defined.
In an array a data item consists of a numbered collection of similar components. Specific elements in an array can be identified through the use of an index . In Java the first index is always the integer 0 which is referred to as the lower bound , the last index is then referred to as the upper bound . So that an appropriate amount of memory can be set aside we must also tell the compiler how many elements to expect. In many ways we can also consider a class to be a compound type.