GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 220 of 258    Print  
what is the difference betwwen in Abstraction
and Encapsulation.explain with example

  
Total Answers and Comments: 6 Last Update: April 22, 2009     Asked by: Nagasree V 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 06, 2006 01:32:18   #1  
smithi Member Since: May 2006   Contribution: 2    

RE: what is the difference betwwen in Abstraction

abstraction:It refers to the act of representing essential features without including the background details.

for example: if a customer wants to buy a car.he looks at its color perfomance etc but he doesnt look at things like how these are functioning internally etc.

encapsulation:the wrapping up of data and functions into a single unit called class is called encapsulation.


 
Is this answer useful? Yes | No
June 04, 2006 12:40:39   #2  
bharat        

RE: what is the difference betwwen in Abstraction
Abstraction means implementation hiding and Encapsulation means data hiding.
 
Is this answer useful? Yes | No
June 13, 2006 05:32:44   #3  
praveen        

tell me clearely

hai

iam not understanding what ur saying .please give me a clean information.

thanking u.


 
Is this answer useful? Yes | No
July 04, 2006 06:03:12   #4  
Aashish Renapurkar        

what is the difference betwwen in Abstraction
Abstraction:It refers to the act of representing essential features without including the background details.for example:If a customer wants to buy a car.he looks at its color perfomance etc but he doesnt look at things like how these are functioning internally etc.Encapsulation:The wrapping up of data and functions into a single unit called class is called encapsulation
 
Is this answer useful? Yes | No
August 08, 2006 00:30:43   #5  
sajithkt Member Since: August 2006   Contribution: 1    

where do we use abstraction and encapsulation in core java.

where do we use abstraction and encapsulation in core java. give some program examples....


 
Is this answer useful? Yes | No
April 21, 2009 20:20:15   #6  
ghunghru Member Since: December 2007   Contribution: 1    

RE: what is the difference betwwen in Abstractionand Encapsulation.explain with example

Abstraction is just like a Hotel room where a single person wants only
1bed+bathroom but family required minimum of double bed +bathroom. Whereas few
people want AC system or hot water system or TV like accessories but other
don t. During the designing of hotel all requirements will considered. So that
hotel will produce more profit.In the same way when an object is fulfill a
variety of requirement then an object having abstraction feature.Take an example
of hotel only to understand what is encapsulation? How many staff entertaining
all requirements of guests visited in a hotel? From where they purchased all
bed desk Ac system TV etc? Beside of all such complexities we enjoy the
hotel room during our journey. A hotel is not a construction of brick but it is
having rooms with well furnished staff to entertain request. This is what
encapsulation. When an object having many data members and methods to fulfill
the different requirements then an object having encapsulation feature.


 
Is this answer useful? Yes | No


 
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