Thread: Encapsulation Vs Abstraction

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    4

    Encapsulation Vs Abstraction

    I couldn't differentiate encapsulation and abstraction.. can any one clarify my doubt by telling a strong difference between the two ??

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    You're kidding right? I can tell the difference just by referring to an english language dictionary

    Encapsulation (v) : to become enclosed in or as if in a capsule.

    Abstraction (n): the act of considering or thinking about something as a general quality or characteristic, apart from concrete realities, specific objects, or actual instances.

    Now, okay, these definitions are not specific to object oriented design nor to C++. But the meanings are completely consistent.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is there Data Abstraction in C Language?
    By aloysiustany in forum C Programming
    Replies: 16
    Last Post: 12-16-2009, 09:11 AM
  2. Data Abstraction?
    By Matus in forum C Programming
    Replies: 9
    Last Post: 12-11-2008, 09:56 AM
  3. Abstraction
    By Nereus in forum C++ Programming
    Replies: 5
    Last Post: 09-17-2007, 09:19 PM
  4. Replies: 11
    Last Post: 03-11-2004, 04:17 PM
  5. data classes and abstraction
    By neo001 in forum C++ Programming
    Replies: 1
    Last Post: 10-15-2002, 08:00 AM