Thursday, March 12, 2009

Difference Between Abstraction and Encapsulation (CoreJava)

Question :Difference Between Abstraction and Encapsulation (CoreJava)
Answer :Abstraction is removing some distinctions between objects, so as to show
their commonalities.
Encapsulation is hiding the details of the implementation of an object so
that there are no external dependencies on the particular implementation.

No comments: