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
Tell me can a pure virtual function have an implementation?
Is python better than c++?
What is iomanip c++?
What is a literal in c++?
Where the memory to the static variables is allocated?
Why iomanip is used in c++?
What things would you remember while making an interface?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is the identity function in c++? How is it useful?
Are there interfaces in c++?
What are the restrictions apply to constructors and destructors?
Is nan a c++?
Can member functions be private?
What is a singleton class c++?
Define vptr.