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

 Print  |  
Question:  what is the difference between encapsulation and datahiding.explain with example



September 09, 2006 17:31:18 #9
 RAJEEV16706   Member Since: September 2006    Total Comments: 7 

RE: what is the difference between encapsulation and d...
 

ENCAPSULATION : WHEN IS ARE DECLARING A CLASS WE ARE DOING ENCAPSULATION.

DATA HIDING: WHEN WE PROVIDE ACCESS SPECIFIER TO THEM LIKE (PRIVATE PROTECTED,PACKAGE PROTECTED, PUBLIC) WE ARE HIDING THE DATA FROM MISUSE.

PLEASE COMMENT...

     

 

Back To Question