GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 251 of 258    Print  
what is difference between abstract data type and encapsulation of data?

  
Total Answers and Comments: 4 Last Update: July 24, 2009     Asked by: musaib 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: vini.rana
 
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.

Above answer was rated as good by the following members:
ppchandak, sendkgp
August 19, 2008 03:19:46   #1  
vini.rana Member Since: August 2008   Contribution: 8    

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.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 29, 2008 10:39:35   #2  
achetan Member Since: November 2008   Contribution: 1    

RE: what is difference between abstract data type and encapsulation of data?

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


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
December 23, 2008 03:23:39   #3  
ppchandak Member Since: December 2008   Contribution: 1    

RE: what is difference between abstract data type and encapsulation of data?
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.
 
Is this answer useful? Yes | No
July 22, 2009 14:18:21   #4  
remodarling Member Since: July 2009   Contribution: 1    

RE: what is difference between abstract data type and encapsulation of data?
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.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape