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
Array base access faster or pointer base access is faster?
Write a program to find the Fibonacci series recursively.
Can a function take variable length arguments, if yes, how?
Why is c++ considered difficult?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What is a loop? What are different types of loops in c++?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What is a constructor and how is it called? What is the C-style character string? Why is c++ is better than c? Explain rtti. How do you traverse a btree in backward in-order? What is a hashmap c++? What are the five basic elements of a c++ program? Is c++ primer good for beginners?