Why are user-defined data types necessary?
- The build-in data types are not good/adequate enough
- User-defined data types make the program code more understandable and less error-prone
What is a composite data type and what is a non-composite data type?
- A non-composite data type has a definition which does not involve a reference to another type. The commonly used non-composite user defined data types are: enumeration/enumerated data type, and pointer.
- A composite data type has a definition with reference to at least one other type. The commonly user composite data types are: record, set, classes and objects.