Professional Documents
Culture Documents
Presentation 2
Presentation 2
In contrast to the data structures, which are specific and detailed implementations
that deal with how the data structure does its job, an ADT focuses on what it does
and not how it does its job. In short, the ADT defines what that particular data
construct must do and the data structure is the concrete implementation of that
construct.
There are no specific rules which force the implementation of particular methods
and operations in a particular ADT. This is decided based on the requirements in a
use-case scenario and ultimately by design choice.
Encapsulation
An ADT will provide certain methods and properties. And the knowledge of these
methods and properties is all the user will need to successfully operate with the
ADT.
Compartmentalization
The code that is using the ADT will not have to be changed even if the internal
workings of the ADT have been changed. The change in the ADT is isolated and
compartmentalized.
Adaptability