Wrox Programmer Forums
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 2nd, 2004, 02:42 AM
Authorized User
Join Date: Jun 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to arshad mahmood
Default What is abstraction...?

can any one tell me that how can define Abstraction and Data hiding.I mean that what is the simple defination of abstraction and data hiding.


arshad mahmood
arshad mahmood
Reply With Quote
  #2 (permalink)  
Old June 8th, 2004, 02:13 AM
Authorized User
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ankur_vachhani

Data hiding is concept of making your data private i.e. only accesible within the class member functions.

       class check

/* This is private data cant access outside the class */
            int i ;
             int j;

  Check c1;

  c1.i=0; //// Error
   c1.j=0; ///works fine



Two things to be rememeber always......

(1) Never tell all that u know
Reply With Quote
  #3 (permalink)  
Old June 30th, 2004, 01:28 AM
Authorized User
Join Date: Oct 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts

Abstraction is simply a way of modelling entities by focusing on the important attributes and suppressing the less important details.
This means as decomposition proceeds, the design of components is expressed gradually in more concrete terms until at the lowest level of abstraction when the design is ready for translating into some programming language.

Information hiding is when the modules sh'd be characterised by design decision and each, hiding information from all the others.
i.e each info in each module sh'd be hidden or not accessed by other modules that don't need it.
Hope this info. helps u.


Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
UI Abstraction layer navdeep General .NET 10 October 9th, 2007 06:22 PM
GenericObject with Database Abstraction soccer022483 BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 March 28th, 2006 07:09 AM
Data Abstraction Layer kcraft Pro PHP 6 March 18th, 2006 04:29 PM
Database Abstraction Layer browngb BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 4 April 30th, 2005 03:34 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.