2 - Abstract Data Types
2 - Abstract Data Types
BY MAYANK BHATT
BY MAYANK BHATT
Abstract Data Types
Abstract Data Type (ADT): a definition for a data type
solely in terms of a set of values and a set of operations on
that data type.
An abstract data type (ADT) is a data type that is organized
in such a way that the specification of the objects and the
operations on the objects is separated from the
representation of the objects and the implementation of the
operations.
Each ADT operation is defined by its inputs and outputs.
Encapsulation: Hide implementation details.
The definition of the data type and the definition of the
operation to be applied to the data is part of the idea
behind an abstract data type (ADT)—to hide how the
operation is performed on the data.
BY MAYANK BHATT
Abstract Data Types
Operations
BY MAYANK BHATT
Abstract Data Types
Operations
• Addition
• Substraction
• Multiplication
• Division
BY MAYANK BHATT
Abstract Data Types
Example Implementation 1
Thank
You