by ggomez on Tue Apr 17, 2007 4:05 am
Encapsulation is when you can use diferents tool from a single object in your program.
for example: Obj o=new Obj();
o.sum(); o.divide() and everything inside the same object.
Abstraction is when you simplify a complicate proccess with a few statement.
for example: o.solveEquation(2,3,5)
with this i wont need to complicate my life every time i need it.
it is encapsulated because its inside an object and its abstract beacause i dont really need to know how to resolve equations.
A good tutorial will do a better job, this is to make the understanding easier.