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



May 05, 2006 17:27:34 #7
 malathi   Member Since: Visitor    Total Comments: N/A 

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

Encapsulation is the inclusion all the resources needed for the object to function - basically, the method and the data.

information hiding is one technique used to accomplish encapsulation of an object.Information hiding is when you remove data, methods or code from a class's public interface in order to refine the scope of an object.

 

     

 

Back To Question