Tuesday, November 29, 2011

What is the difference between abstraction and encapsulation?

* Abstraction focuses on the outside view of an object (i.e. the interface) Encapsulation (information hiding) prevents clients from seeing it?s inside view, where the behavior of the abstraction is implemented.:Abstraction is hiding the implementation details of the object from its specifications.:abstraction:Abstraction means hiding the data.
Category:Core Java Interview Questions

No comments:

Post a Comment