home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / 8694 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.6 KB  |  46 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!paladin.american.edu!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!news!humu!pegasus!tleylan
  3. From: tleylan@pegasus.com (Tom Leylan)
  4. Subject: Re: Info hiding v/s data abstraction
  5. Message-ID: <1992Dec27.075106.24834@pegasus.com>
  6. Organization: Pegasus,  Honolulu
  7. References: <18923@mindlink.bc.ca>
  8. Date: Sun, 27 Dec 92 07:51:06 GMT
  9. Lines: 35
  10.  
  11. John_Carson@mindlink.bc.ca (John Carson) writes:
  12. >> Yashesh Bhatia writes:
  13.  
  14. >> Could someone let me know if there are dufferences between these two terms
  15. >> and if so what are the pro's and cons of using one for the other in the
  16. >> world of databeses and s/w eng.
  17. >
  18. >Data abstraction and hiding data.
  19. >
  20. >1) Data abstraction is removing the database #1 and placing into database #2
  21. >and based on a certain condition. Then manipulating it to your needs.
  22. >
  23. >2) Hiding data is like setting a filter so you only see what you want based
  24. >on the filter condition.
  25.  
  26. John... Quick send a follow up message consisting of nothing more than a
  27. grin symbol before somebody thinks you meant this <g>
  28.  
  29. Possibly you're describing "data extraction" and "database filtering" but
  30. that isn't (in my reading) what the question was about.
  31.  
  32. Data abstraction and data hiding isn't even about "databases" particularly
  33. but rather "data" in the sense of "what's under the hood".  Both are
  34. fundamental principles of OOPs programming and I switch between the two
  35. terms at will.
  36.  
  37. You want to be able to write something similar to :
  38.  
  39.  nVar = MyBox:width
  40.  
  41. and not be concerned whether "width" is a function which determines the
  42. width of the box or simply an attribute of a box which is returned.
  43.  
  44. tom
  45.  
  46.