GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 28 of 64    Print  
difference between data abstraction & encapsulation.

  
Total Answers and Comments: 7 Last Update: May 28, 2008     Asked by: girija 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 27, 2006 00:42:11   #1  
dhivya        

RE: difference between data abstraction & encapsulatio...

Data Abstraction is removing unneccessary datas.

Data Encapsualation is wrapping up the data into the single frame called class,for further reuseablity.


 
Is this answer useful? Yes | No
November 21, 2006 22:58:37   #2  
DEEPAK KUMAR MAHAPATRA (TCS KOCHI)        

RE: difference between data abstraction & encapsulatio...

Hii

DIFFERENCE

1.REPRESENTATION OF ESSENTIAL FEATURE WITHOUT INCLUDING THE BACKGROUND DETAIL IS CALLED DATA ABSTRACTION WHILE COLLECTION OF ALL DATA AND METHOD INTO A SINGLE UNIT CALLED ENCAPSULATION

2.IN DATA ABSTRACTION WE WERE IGNORE ABOUT THE DETAILS REGARDING AN OBJECT TYPE WHILE ENCAPSULATION DESCRIBE DETAILS INFORMATION ABOUT AN OBJECT TYPE.

BY

DEEPAK(KOCHI TCS)


 
Is this answer useful? Yes | No
January 04, 2007 06:02:06   #3  
Lokesh        

RE: difference between data abstraction & encapsulatio...
Can someone give small example for this:

In Data Abstraction we ignore about the details regarding an object type while Encapsulation describe detail information about an object type.

 
Is this answer useful? Yes | No
January 22, 2007 10:36:04   #4  
chandrasekhar vuppu        

RE: difference between data abstraction & encapsulatio...

Abstraction is the ability to generalize an object as a datatype that has specific set of characterstics and specific actions.

Encapsulation is the process of localizing or hiding of information and process within the object. so that an object of a class can be served as black box the users. Best example for encapsulation is a class object (its a combination of interface,behaviour and implementation)


 
Is this answer useful? Yes | No
October 17, 2007 22:58:42   #5  
meeram395 Member Since: October 2006   Contribution: 1    

RE: difference between data abstraction & encapsulatio...
Would be great if you could give a clear example describing the concepts rather than just providing the definition
 
Is this answer useful? Yes | No
November 08, 2007 01:29:30   #6  
Mohit Singhal        

RE: difference between data abstraction & encapsulatio...

A very simple example could be:

In case of a car, a brake shows Abstraction in the way that it provides an interface that has contract to stop the car & shows the encapsulation in the way, how the components are fixed into the brake system to provide the functionality.


 
Is this answer useful? Yes | No
May 28, 2008 04:37:41   #7  
faran Member Since: May 2008   Contribution: 1    

RE: difference between data abstraction & encapsulation.
Abstraction: We don't have to bother about the data type of the object while accessing it.
Encapsulation: We put all the correlated data and methods in a class.

Faran Shabbir

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape