what is data Abstraction? and give example
Answer Posted / chandan jana
The main idea behind data abstraction is to give a clear
separation between properties of data type and the
associated implementation details. This separation is
achieved in order that the properties of the abstract data
type are visible to the user interface and the
implementation details are hidden. Thus, abstraction forms
the basic platform for the creation of user-defined data
types called objects. Data abstraction is the process of
refining data to its essential form.
In object-oriented programming language C++, it is possible
to create and provide an interface that accesses only
certain elements of data types. The programmer can decide
which user to give or grant access to and hide the other
details. This concept is called data hiding which is similar
in concept to data abstraction.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is #include iomanip?
When do we use copy constructors?
Can you write a function similar to printf()?
What is the difference between public, private, and protected access?
What is exception handling? Does c++ support exception handling?
What is a constructor in c++ with example?
By using c++ with an example describe linked list?
Why pointer is used in c++?
Explain about Garbage Collector?
What is type of 'this' pointer?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
How does java differ from c and c++?
What is the use of structure in c++?
How can I improve my c++ skills?
What is the role of C++ shorthand's?