What is data abstraction? Elaborate with example?
Answers were Sorted based on User's Feedback
Answer / dsr
hidding unneccessary data from userdetails, is called
abstraction.
Example:TV Remote.
Buttons are cisible.circuit is not visible.(Hidden)
Is This Answer Correct ? | 104 Yes | 9 No |
Answer / mahi
Data abstraction means in simple words its nothing but we
do not represent the unnecessary details to the user.
It means if you want to take the medicine .u will use it
regarding prescription with out knowing of the details of
drugs that are used in manufacturing of the medicine
that's it
Is This Answer Correct ? | 30 Yes | 5 No |
Answer / rajashree
we noted that a procedure used as an element in creating a
more complex procedure could be regarded not only as a
collection of particular operations but also as a
procedural abstraction. That is, the details of how the
procedure was implemented could be suppressed, and the
particular procedure itself could be replaced by any other
procedure with the same overall behavior. In other words,
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.
Is This Answer Correct ? | 26 Yes | 22 No |
Answer / 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 |
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one?
Can you give names of Container classes?
Can you inherit from an abstract class java?
Why string is immutable or final in java
How do you differentiate abstract class from interface?
In how many ways we can do exception handling in java?
What is pre increment and post increment in java?
Print Vertical traversal of a Binary Tree.
how can we synchronize Hash map?
What is a parameter example?
What is the purpose of finalization?
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class?