What is difference between encapsulation and abstraction and how are they related to each other?

[Edit]

Answer

Encapsulation is hiding the details of the implementation of an object so that there are no dependancies on the particular implementation.

Abstraction is removing some distinctions between objects, so as to showing their commonalities

Improve Answer View existing comments for "What is difference between encapsulation and abstraction and how are they related to each other?" Watch Question

First answer by Sameer Awate. Last edit by Phaniraj426. Contributor trust: 27 [recommend contributor]. Question popularity: 85 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Software and Applications > What is difference between encapsulation and abstraction and how are they related to each other?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Abstraction in C?  Encapsulation in C?  What is data hiding?  What is abstraction?  What is a abstraction?  9 What is abstraction?  What is an abstraction?  Example for abstraction?  What is Abstraction in C?  12 What is encapsulation?  Abstraction in OOPS concept?  What is abstraction in ddbms?  What type of inheritence in c?  How data hiding is achieved in c?  What are the types of polymorphism?  Real world example for abstraction?  Data abstraction and encapsulation?  Levels of data abstraction available?  Diff between interfaces and abstraction?  Diff between abstraction and encapsulation?