ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 
 
Question
WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND 
ENCAPSULATION?
PLEASE EXPLAIN IT.
 Question Asked At :: ETH, Allinterview, Allinterview, Allinterview, Allinterview
 Question Submitted By :: deepak pareek
I also faced this Question!!     Rank Answer Posted By  
 
Answer
ABSTRUCTION:
 
Process of providing the neccesary properties & operations 
of an object is called as abstuction

Example take car the car user only know things reqired.
he don't no the internal functionality of the car b'coz it 
is not required for the user .

properties like car:colour,number,model etc.
operations like car:move front,backetc.

ENCAPSULATION:

Process of providing all the properties&operayion of entity 
in one place is called as encapsulation.
 
In java operations are called as methods,properties are
called as variables.

The place where you were write the variables &properties is 
called as class.

 
Mahesh_b.tech@2008
 
View All Answers
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com