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


Please Help Members By Posting Answers For Below Questions

What are references in c++? What is a local reference?

576


What is a tree in c++?

563


What is a unnitialised pointer?

531


How the virtual functions maintain the call up?

606


What is implicit pointer in c++?

602






What is encapsulation in C++? Give an example.

588


How do you find out if a linked-list has an end?

649


What are the advantages of using const reference arguments in a function?

618


Should I learn c++ c?

611


What do you know about near, far and huge pointer?

599


What are namespaces in c++?

595


Write about the role of c++ in the tradeoff of safety vs. Usability?

595


If dog is a friend of boy, is boy a friend of dog?

571


Carry out conversion of one object of user-defined type to another?

611


Explain the difference between overloading and overriding?

613