Results 1 to 2 of 2
- 09-04-2012, 05:12 PM #1Member
- Join Date
- Jul 2012
- Rep Power
abstraction and encapsulation..what is the differance?
i was learning Java basic fundamentals and got confused regarding one thing is...
Abstraction : process of hiding irrelevant details and exposing relevant one
Encapsulation : process of hiding members from the external world.
so it seems one and the same to me, can you please help me understanding the same?
also please give some examples so that this will get cleared in my mind.
Thanking in advance,
- 09-05-2012, 05:36 AM #2
Re: abstraction and encapsulation..what is the differance?
Abstraction means making the callers or users of a piece of code independent from its the code's internal implementation. In other words, defining an API. Abstraction is the goal; encapsulation is the means.Get in the habit of using standard Java naming conventions!
- By ResidentBiscuit in forum New To JavaReplies: 5Last Post: 11-17-2011, 09:40 AM
- By Shephard in forum New To JavaReplies: 5Last Post: 03-05-2011, 09:43 PM
- By hitesh_public in forum New To JavaReplies: 1Last Post: 08-20-2010, 02:23 PM
- By maya700 in forum New To JavaReplies: 4Last Post: 07-04-2010, 06:26 PM
- By anurag in forum New To JavaReplies: 6Last Post: 05-15-2010, 06:15 PM