What is difference between abstract data type and encapsulation of data?

Showing Answers 1 - 4 of 4 Answers

vini.rana

  • Aug 19th, 2008
 

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.

achetan

  • Nov 29th, 2008
 

 A data structure together with the actions performed on that data structure is called data encapsulation.

A data type with the actions performed on instantiations of that data type is known as abstract data type 

  Was this answer useful?  Yes

ppchandak

  • Dec 23rd, 2008
 

Data type, methods, properties etc of a objects are Data Abstraction where as its implementation and functionality is hidden from other objects is Data Encapsulation.

  Was this answer useful?  Yes

remodarling

  • Jul 22nd, 2009
 

Encapsulation means data hiding+abstraction. In data hiding we will not allow our data to go out directly. Eg. Declaring data members as private is data hiding, where as abstraction means hiding internal implementation is called abstraction.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions