Abstract data type in python | advantages of Abstract data types in python | What is abstract data types in python |


Abstract data type in python | advantages of Abstract data types in python | What is abstract data types in python |



Abstract Data Types -:


1.Abstract data type (ADT) is a type or class for object s whose behavior is define by a set of value and a set of operations.

2.The definition of ADT (Abstract data type) Only mentions what operation are to be performed but not how these operation will be implemented 

3. It does not specify how data will be organized in memory and what algorithms will be used for implementing the operation. It is called abstract because it gives and implementations independent view.

4. The process of providing only the essentials and hiding the details is know as abstraction.



Abstract data type in python | advantages of Abstract data types in python | What is abstract data types in python |
Abstract data types(ADT)





Abstract data type in python | advantages of Abstract data types in python | What is abstract data types in python |
Figure : Separating the ADT definition from its implementation.


In above figure show as the implementation of the various operations are hidden inside the black box, the contents of which we do not have to know in order to utilize the ADT. 
abstract data type focus only on the “what” instead of the “how.”
There are several advantages of abstract data types (ADT). 


Advantages of Abstract Data Type (ADT)  

1. ADT is reusable, Robust and is based on principles of object oriented programming (oop) and software engineering ( SE).

2. An ADT can be reused at several places and it reduce coding efforts.

3. Encapsulation ensures that data cannot be corrupted.

4. Working of various integrated operation cannot be tampered with by the application program. 

5. ADT ensure a robust data structure.














Post a Comment

Post a Comment (0)

Previous Post Next Post