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 its advantages and disadvantages of multiple inheritances (virtual inheritance)?
Why is main an int?
What is difference between c++ 11 and c++ 14?
What are advantages of using friend classes?
What is a modifier in c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?
What is the use of bit fields in structure declaration?
What do you mean by vtable and vptr in c++?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
Tell me an example where stacks are useful?
How the keyword struct is different from the keyword class in c++?
Which is the best c++ compiler for beginners?
What is a storage class used in c++?
What is atoi?
What are the benefits of operator overloading?