3.1.1 User Defined Data Types
User Defined Data Types
A user-defined data type (UDT) is a data type that derived from an existing data type. You can use UDTs to extend the built-in types already available and create your own customized data types.
Non composite Data Type : Single data type not involving reference to any other data type Now please note that first four are non composite and in built data types whereas pointer and enumerated data types are non composite and user defined data types
- * Integer ( Whole numbers )
- * Real ( Decimal Numbers )
- * String (Alphanumeric Data )
- * Boolean ( True/False )
- * Pointer ( Number used to reference a memory location )
- * Enumerated ( A list of possible data values )
Pseudocode : TYPE
DECLARE Alphabets : ( "A", "B", "C" )
DECLARE Num : 1...5000
ENDTYPE
|| THE non-composite data type used in the Alphabets and Num declarations is ENUMERATED.
Composite Data Type: Data type constructed from other data types
- * Set ( Collection of finite number of items with no order )
- * Record ( Collection of related items of different data types )
- * Class ( Blueprint from which objects are made , Gives properties and methods for objects )
0 Comments