answersLogoWhite

0


Best Answer
  • The implementor of the class can change the implementation for maintenance, bug fixes or optimization reasons, without disturbing the client code.
  • The data type is defined as a set of high-level services with a semantic contract defining both the output that is provided and the input that is required from the client. This actually correspond to the general definition of a type in programming: a type is defined as a set of possible values and a set of operations available on these values.
User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago
  1. Encapsulation - Because each user-defined data type exist as a complete entity, including the data definitions, default values, and value constraints, this entity insures uniformity and consistency. Once defined, a user-defined data type may participate in many other user-defined data types, such that the same logical data type, always has the same definition, default values and value constraints, regardless of where it appears in the database.

  2. Reusability - As a hierarchy of common data structures are assembled, these can be re-used within many definitions, saving coding time and insuring uniformity.

  3. Flexibility - The ability to create real-world data representations of data allows the database object designer to model the real world as it exists.

As you can see there are many compelling reasons to have user-defined data typing, provided that the data types are properly analyzed and incorporated into the database object model. Let's take a look at some of the implementation issues that relate to the object model and data typing.

Nesting of user-defined data types

Now lets take this concept one step further and consider how user-defined data types can be nested within other data types. A basic example, would be to create a data type that would encapsulate all of the data in a table:

CREATE TYPE customer_stuff (

full_name customer_name,

home_address customer_address

business_address customer_address);

With the customer_stuff type defined, table definition becomes simple:

CREATE TABLE CUSTOMER (customer_data customer_stuff);

Using this type of user-defined data type we are essentially duplicating the object-oriented concept of encapsulation. That is, we are placing groups of related data types into a container that is completely self-contained and has the full authority of the innate relational data types such as int and char.

Select customer_stuff.customer_name.zip_code

from customer

where customer_stuff.customer_name.zip_code like '144%';

Manipulating ADT's

In many object databases it is possible to directly retrieve and pass an abstract data type. While this is a matter of convenience for most programmers, there are some very useful applications of this technique, especially for the object/relational databases. In object/relational databases, ADT's can be directly retrieved and used inside other tables. In the following Oracle example, a new table called good_customer is created by retrieving the entire ADT from the customer table

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Abstract data types does not have any maximum reservable memory allocation size and also has no limit in storing the size and types of variables like primitive data types.

They can stores all the characters of Unicode and also allocate space in memory according to the size of the variable given by the user each time.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Because there is no existing type of data that can be used for that purpose.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the benefits of using Abstract Data Types?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is built-in data-type are abstract data-types in java?

All built-in data types are not abstract data types.


What are different data types used in 8087 programming?

Abstract,etc


What has the author Daniel F Stubbs written?

Daniel F. Stubbs has written: 'Data structures with abstract data types and Ada' -- subject(s): Abstract data types (Computer science), Ada (Computer program language), Data structures (Computer science)


What is the type of class for which objects can not be created except the static member?

Abstract data types or abstract base classes.


What are the benefits of using data protection solutions?

The benefits of using data protection solutions is it backs up your data in an efficient way. It is easier to recover data quickly in case of a disaster.


What has the author Reinhold Friedrich Hille written?

Reinhold Friedrich Hille has written: 'Data Abstraction and Program Development Using Modula Two' 'Data abstraction and program development using Pascal' -- subject(s): Abstract data types (Computer science), Computer programming


Why are classses in cpp called abstract data types?

No reason. It is not even true.


Which can be used to represent a many to many relation with abstract data types?

tree


Benefits of using a database?

Fidelity of data


What are the language design requirements for a language that supports abstract data types?

What are language design requirements for languages that support abstract data types ---- Is something that you will find in your text book or ask your teacher. WikiAnswers cannot do your homework for you.


Two benefits of using Direct Data Entry?

It reads data fast and accurate. Data can be input easy.


Two benefits of using direct data entry devices?

It reads data fast and accurate. Data can be input easy.