home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH01 / A01144.TXT < prev    next >
Encoding:
Text File  |  1993-10-18  |  498 b   |  9 lines

  1. Encapsulation means controlling access to the data and functions
  2. defined inside a class.  In object-oriented languages, an
  3. attempt to access hidden data members or misuse member functions
  4. is treated as an error.  This is how these languages support
  5. encapsulation. Programmers cannot take shortcuts, or make quick
  6. fixes, in a client program by using the class in ways that were
  7. not intended. This feature eliminates a potential source of bugs,
  8. and helps to maintain the reusability of code.
  9.