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
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
Question Explain in detail about encapsulation with an example?
 Question Asked At ::
 Question Submitted By :: guest
I also faced this Question!!    
Answer Posted By  
 
Answer
it is way to combine field and mathod in a single entity
like a capsule ;
class A
{
int i;
void m(int i)
{
//body of this mathod ;
}
}
like this way;

Is This Answer Correct ?    5 Yes 0 No


 
  sanjay singh chauhan
 
View All Answers