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 are references in c++? What is a local reference?
What is a tree in c++?
What is a unnitialised pointer?
How the virtual functions maintain the call up?
What is implicit pointer in c++?
What is encapsulation in C++? Give an example.
How do you find out if a linked-list has an end?
What are the advantages of using const reference arguments in a function?
Should I learn c++ c?
What do you know about near, far and huge pointer?
What are namespaces in c++?
Write about the role of c++ in the tradeoff of safety vs. Usability?
If dog is a friend of boy, is boy a friend of dog?
Carry out conversion of one object of user-defined type to another?
Explain the difference between overloading and overriding?