What is an abstract data type?

There are many types of variables, functions and data types in computer programming. The abstract data type is a variable that can change under the program conditions. This is an object -oriented programming model that allows the code to be reused by creating an abstraction layer. This data type is often used in C ++ and Java® programming languages ​​and is considered a technique of advanced development.

The abstract data type is considered to be the lowest common definition of the denominator of a specific set or data structure. This data type should include basic operations to allow data to be modified in this structure. Data type can be used with similar data types through heredity, which makes operations expandable to offspring.

The example, which is often used to describe abstract data types, are list objects and queues. These are objects that maintain information in a linear way, similar to the data table. LIST I OBJECTION FRONTY MANAGE DATA sets andUsing functions to handle this data. By creating an abstract data type for setting data, data and queues can use the same sorting functions.

abstract data type cannot be used without its first assignment to a specific data type. It is a structure of the precursor skeleton, which must be converted to a real data type when creating it. The skeleton is then used by accessing functions available for inherited concrete implementation. The abstract class defines the interfaces and functions that can be used by offspring.

Having abstraction within the software makes the program flexible for future modifications. This abstract layer providesThe area for general functions to be created and used throughout the application. The Java® programming language achieves this through interfaces and functional methods in an abstract layer.

Abstract data type can also be used to implement the object database. It is a proposal of a hierarchal database, which is based on objects and relationships with parents and child. Within the principles of database of objects and type of abstract data, they can have multiple forms. This allows multiple data types in the database structure.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?