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:  Difference between data encapsulation and abstraction?



July 07, 2008 02:56:51 #3
 hafeez_munawar   Member Since: July 2008    Total Comments: 2 

RE: Difference between data encapsulation and abstraction?
 

Encapsulation:
Data and function that operate on that data are wrapped in a single unit.

Abstaction:
In abstratction, only interface in exopsed, the underlying details of the particular function is hidden from the programmer. So one does'nt need to worry about the details of a particular method, he or she just calls the method

     

 

Back To Question