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
Can we declare a base-class destructor as virtual?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Can we change the basic meaning of an operator in c++?
What is setw manipulator in c++?
Describe private, protected and public – the differences and give examples.
What are associate containers?
What causes a runtime error c++?
daily Routine of father
Define friend function.
Is c++ pass by reference or value?
What is a list c++?
What is null pointer and void pointer and what is their use?
How is data hiding achieved in c++?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What are the four main data types?