All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Abstract data type?

Definition 24.1 High School Computer Science · Chapter 24 — Linked Lists, Stacks and Queues

An abstract data type is a kind of data defined only by its operations and what each one does: an interface with its specifications. How the data is stored, its implementation, is left out; one abstract data type can have several implementations, and a program that uses only the interface works with any of them.

Read in context →
Definition 14.1 University Computer Science — Year 1 · Chapter 14 — Dynamic Arrays and Amortised Analysis

An abstract data type is a type given by a set of operations and their specification, without saying how its values are represented. Its interface is the list of the operations with their signatures; an implementation chooses a representation and writes the operations. Code that uses only the interface works unchanged with any implementation that meets the specification.

Read in context →