![]() |
What is difference between encapsulation and abstraction and how are they related to each other? |
[Edit] |
[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
First answer by Sameer Awate. Last edit by Phaniraj426. Contributor trust: 27 [recommend contributor]. Question popularity: 85 [recommend question]



