What is abstract data type ?? And difference between datatype and abstract data type?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is abstract data type ?? And difference between datatype and abstract data type??

With example

27th Apr 2021, 6:31 AM
Neel Tilak
Neel Tilak - avatar
2 Réponses
+ 1
Neel Tilak In that sense, data types depend purely on their external behavior. Now some data types might not specify any sort of implementation and those data types are called abstract data types. ... For example, a singly linked list and a doubly linked list are different data structures because they have different implementations
27th Apr 2021, 10:49 PM
‚̧ԳŹūüėćPreranaūüėć‚̧ԳŹ
‚̧ԳŹūüėćPreranaūüėć‚̧ԳŹ - avatar
0
ADT only mentions what operations are to be performed but not how these operations will be implemented. It does not specify how data will be organized in memory and what algorithms will be used for implementing the operations. It is called ‚Äúabstract‚ÄĚ because it gives an implementation-independent view. The process of providing only the essentials and hiding the details is known as abstraction. Ex: lists, stacks, Queues, class etc.. A datatype is a way of telling the compiler about, what valid values a variable can hold.. Ex: int, float, char etc..
27th Apr 2021, 7:09 AM
sarada lakshmi
sarada lakshmi - avatar