Sponsored Links


Results 1 to 2 of 2

Thread: Difference b/w encapsulation and information hiding

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    Blogger Difference b/w encapsulation and information hiding

    Sponsored Links1



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    Encapsulation means to protect data in an object by making data members protected or private in a class. The user can change the state of an object but the user can not directly modify the object. This ensures that the object will be in a stable condition. In encapsulation both information structure and implementation details are hidden from the outside world.

    Information hiding means hiding the object details (data and behaviour) from the users. Data hiding is an extreme version of encapsulation where you not only don’t want the user to access the data members, but you also don’t even want them to be able to see what they are. Information hiding is achieved by using encapsulation.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. what is difference between *a.b and (*a).b ?
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 11-05-2011, 05:23 PM
  2. what is difference between int* b and int *b?
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 11-05-2011, 05:20 PM
  3. Disadvantage of encapsulation
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 07:36 AM
  4. Replies: 1
    Last Post: 04-29-2011, 07:23 AM
  5. Replies: 1
    Last Post: 04-24-2011, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft | Jobs