Hiding implementation details means not from user. It hides implementation logic from another class.
The other class doesn't need to know about the logic. It simply uses the class without knowing about implementation. Even any update to the logic doesn't require modification of another class. Its called as hiding implementation details.
Consider the collection framework that defines the abstraction called java.util.map. It defines an abstract view of an object that maps from one set of objects in to another. Different classes like java.util.HashMap or java.util.TreeMap implements the Map abstraction.
we generally implement abstraction using interfaces or abstract classes, and then provide implementation elsewhere to hide the details.
Joined: Jul 24, 2009
May i know why the implementation details should be hidden. And also whom form you are hiding the implementation details.
The developer who implements the abstraction knows abt the implementation details. Iam confused about this hiding in java.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: what are the advantage of abstraction in OOP?