Search This Blog

Friday, 20 July 2012

Difference between Encapsulation and Abstraction


1. Abstraction solves the problem in the design level
1. Encapsulation solves the problem in the implementation level
2. Abstraction is used for hiding the unwanted data and giving relevant data
2. Encapsulation means hiding the code and data in to a single unit to protect the data from outside world
3. Abstraction is a technique that helps to identify which specific information should be visible and which information should be hidden.
3. Encapsulation is the technique for packaging the information in such a way as to hide what should be hidden, and make visible what is intended to be visible. 


PREVIOUS CHAPTER

NEXT CHAPTER

No comments:

Post a Comment