Chapter 5: Elementary Data Types
Chapter 5: Elementary Data Types
•Attributes
•Values
•Operations
Attributes
Distinguish data objects of a given type
Data type and name - invariant during the lifetime
of the object
Approaches:
• stored in a descriptor and used during the
program execution
• used only to determine the storage
representation, not used explicitly during
execution
Values
The data type determines the values that
a data object of that type may have
• Storage representation
• Implementation of operations
Storage representation