what is data Abstraction? and give example
Answer Posted / sudhachandan banerjee
Data abstraction refers to, providing only essential information to the outside word and hiding their background details ie. to represent the needed information in program without presenting the details.
Data abstraction is a programming (and design) technique that relies on the separation of interface and implementation.
Let's take one real life example of a TV which you can turn on and off, change the channel, adjust the volume, and add external components such as speakers, VCRs, and DVD players BUT you do not know it's internal detail that is, you do not know how it receives signals over the air or through a cable, how it translates them, and finally displays them on the screen.
Thus we can say, a television clearly separates its internal implementation from its external interface and you can play with its interfaces like the power button, channel changer, and volume control without having zero knowledge of its internals.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
When are exception objects created?
Can a function take variable length arguments, if yes, how?
How does class accomplish data hiding in c++?
Is c++ a dying language?
What are the implicit member functions of class?
What is the best free c++ compiler for windows?
How to declare a function pointer?
Explain the differences between private, public and protected and give examples.
What is the use of structure in c++?
What is the difference between global variables and static varables?
Write about all the implicit member functions of a class?
What is ios class in c++?
What is the use of namespace std in C++?
Describe protected access specifiers?
How many types of comments are there in c++?