What does abstract data type means?
Answer Posted / s. kabir
ADT is a programming model for some real life entity.
Commonly used for Collection of elements e.g. List.
It defines the data requirements to hold data about the
entity, the operations to be performed on the entity, and
the set of rules( i.e. specifications) to be assumed for
defining data and operations for the entity.
A particular data type (e.g. integer, Decimal )is not
considered. The actual implementation of operations is
hidden from user.
e.g. List
Data requirement : collection of elements in the form of
array or Linked list (type not mentions)
The operations: AddElement, RemoveElement, DisplayList,
InsertElementAt etc.
Thus, in summary, ADT encapsulates the Data and Operations
in some form. The user knows what operations can be
performed and not how they are implemented.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Which is better hashmap or arraylist?
Can we store null in arraylist?
What is the default capacity of hashmap?
What can be stored in an arraylist?
Explain exception filter?
What is a tech stack?
Explain singly linked list in short.
Explain the term recursive case?
What is data structure and its classification?
What is a subtree?
Which of the collections allows null as the key?
Can we insert null in set?
How do you sort a list in reverse order?
Can we increase the size of statically allocated array?
Can a tree be empty?