4 Replies - 489 Views - Last Post: 23 December 2012 - 09:49 AM Rate Topic: -----

#1 Gardezi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 29-October 12

Difference between Abstraction and Information Hiding

Posted 22 December 2012 - 10:47 PM

Can somebody please tell me the difference between Abstraction and information hiding ?
Is This A Good Question/Topic? 0
  • +

Replies To: Difference between Abstraction and Information Hiding

#2 jjl  Icon User is offline

  • Engineer
  • member icon

Reputation: 1046
  • View blog
  • Posts: 4,449
  • Joined: 09-June 09

Re: Difference between Abstraction and Information Hiding

Posted 22 December 2012 - 11:26 PM

Information hiding, or data encapsulation, has to do with binding private data to an object which the client cannot access.

Abstraction is a similar concept, however it is about encapsulating the implementation of an object so the client only needs to work with fundamental components.

This post has been edited by jjl: 22 December 2012 - 11:27 PM

Was This Post Helpful? 0
  • +
  • -

#3 CY5  Icon User is offline

  • D.I.C Regular

Reputation: 10
  • View blog
  • Posts: 315
  • Joined: 28-September 12

Re: Difference between Abstraction and Information Hiding

Posted 22 December 2012 - 11:46 PM

Abstraction Vs Encapsulation(Information Hiding)
Suppose a example a woman with vaccum cleaner cleanse the house.So here the circuit inside the vaccum cleaner are hidden since it is of no use to the woman,Whereas the button to switch on/off the vaccum cleaner is shown.Since it is useful to the woman.
So Abstraction and Encapsulation are complementary of each other,Abstraction shows only that part of data which are useful whereas Encapsulation encapsulate the data which is not required to the user like circuit board from the above the example.
Was This Post Helpful? 1
  • +
  • -

#4 BlueMelon  Icon User is offline

  • D.I.C Head

Reputation: 39
  • View blog
  • Posts: 187
  • Joined: 27-April 10

Re: Difference between Abstraction and Information Hiding

Posted 23 December 2012 - 09:13 AM

This post here sums it up quite well.

This post has been edited by BlueMelon: 23 December 2012 - 09:14 AM

Was This Post Helpful? 0
  • +
  • -

#5 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: -4
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Difference between Abstraction and Information Hiding

Posted 23 December 2012 - 09:49 AM

This is one of those questions where examples need to be given for a specific language for clarity.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1