| |
GeekInterview.com > Tech FAQs > OOPS
| Print | |
Question: what is difference between abstract data type and encapsulation of data?
|
| August 08, 2008 03:19:46 |
#1 |
| vini.rana |
Member Since: August 2008 Total Comments: 2 |
RE: what is difference between abstract data type and encapsulation of data? |
| In abstraction we just more concentrate on the essential details of the object and we ingnore the non-essential details of the object. In encapsulation, it hide or prevent the access to non-essential details of the object.these both are realted to each other. We take an example of television. We just switch on the TV and see the programs there and change the channel continouosly. So we more concentrate on the programs, so this is abstratction. Also we don't know, simultaneously, what is internal processing running inside the TV. so this is encapsulated from us. |
| |
Back To Question | |