Results 1 to 2 of 2
  1. #1
    b4viral is offline Member
    Join Date
    Jul 2012
    Posts
    17
    Rep Power
    0

    Post abstraction and encapsulation..what is the differance?

    Hi all,

    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,

    Regards,
    vj

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default 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!

Similar Threads

  1. Abstraction and interfaces
    By ResidentBiscuit in forum New To Java
    Replies: 5
    Last Post: 11-17-2011, 10:40 AM
  2. Help with abstraction
    By Shephard in forum New To Java
    Replies: 5
    Last Post: 03-05-2011, 10:43 PM
  3. Are abstraction and encapsulation concepts not in C?
    By hitesh_public in forum New To Java
    Replies: 1
    Last Post: 08-20-2010, 03:23 PM
  4. Abstraction
    By maya700 in forum New To Java
    Replies: 4
    Last Post: 07-04-2010, 07:26 PM
  5. Abstraction
    By anurag in forum New To Java
    Replies: 6
    Last Post: 05-15-2010, 07:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •