Monday, June 18, 2012

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 solves the problem in the design side while Encapsulation is the Implementation


Object Oriented Programming: Abstraction Vs. Encapsulation
http://www.youtube.com/watch?v=57SIpmA3vcg

No comments:

Post a Comment