What is data abstraction? Elaborate with example?

Answer Posted / rahul,bit mesra

we could make an abstraction that would separate the way the procedure would be used from the details of how the procedure would be implemented in terms of more primitive procedures. The analogous notion for compound data is called data abstraction. Data abstraction is a methodology that enables us to isolate how a compound data object is used from the details of how it is constructed from more primitive data objects.

The basic idea of data abstraction is to structure the programs that are to use compound data objects so that they operate on ``abstract data.'' That is, our programs should use data in such a way as to make no assumptions about the data that are not strictly necessary for performing the task at hand. At the same time, a ``concrete'' data representation is defined independent of the programs that use the data. The interface between these two parts of our system will be a set of procedures, called selectors and constructors, that implement the abstract data in terms of the concrete representation

Is This Answer Correct ?    12 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is thread life cycle in java?

586


How is string immutable in java?

545


Can It is possible to synchronize the constructor of a Java Class?

599


what is abstract class in Java?

652


What is contractor means and methods?

561






What is an eror in java?

560


Can java program run without jre?

573


How would you dynamically allocate memory to an array?

598


Write a program to print fibonacci series

617


What is constructor chaining in java?

588


What is percentage in java?

577


Can you explain inner class.

596


How many types of classes are there in java?

523


I want to print “hello” even before main is executed. How will you acheive that?

664


What is Session reduplication and how its done?

1569