Abstract Data Types (original) (raw)

Last Updated : 31 Jan, 2026

Abstract Data Type (ADT) is a conceptual model. They define what a data structure does without dictating how it does it. By separating the logical properties from the physical implementation, ADTs allow for cleaner, more maintainable code.

application_program-1

As depicted in the diagram, the following features of ADTs are highlighted:

Common Examples of ADTs:

While ADTs define the logical model for data handling, several standard structures exemplify this concept. The following examples adhere to the ADT principle by providing specific operations while concealing the underlying storage logic.

**Queue: A linear structure following the FIFO (First In, First Out) principle.

011

**List: A sequential collection of elements.

021

**Stack: A linear structure following the LIFO (Last In, First Out) principle.

031

Differences Between ADTs and UDTs

Abstract Data Types (ADTs) define what operations are allowed, while User Defined Types (UDTs) define how data is stored and implemented.

Abstract Data Types (ADTs) User-Defined Data Types (UDTs)
Focuses on allowed operations and their behaviour, without implementation details. Focuses on how data is organized in memory and how operations are executed.
Provides an abstract model for defining data structures conceptually. Allows programmers to create concrete implementations of data structures using primitive types.
Does not define the implementation of operations or data structure. Specifies how to create and organize data types for implementing the structure.
List, Stack, Queue Classes, Structs, Enumerations

Advantages

Disadvantages