posted 15 years ago
Ok what i understood is abstraction tells you "what the system is doing" and not how it is doing. That is you are not bother about the implementation details how the systems works. Similarly Encapsulation hides the implementation details from the user. So the implementation details is the main problem for me in abstraction you dont bother about the implementaion and in encapsulation you are not allowed to know the implemenation. Both these things seems very much confusing to me. Can you give me some real life example so that i can judge the difference.