home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A08121.TXT < prev    next >
Encoding:
Text File  |  1993-09-15  |  472 b   |  9 lines

  1. Constructs such as stacks, lists, sets, and various kinds of
  2. collections are usually implemented in C++ as container classes.
  3. Here, the List class is a container class holding an array of
  4. PhoneNum objects.  You can adapt the List class to hold an array
  5. of objects of a different type by changing the type of the pointer
  6. "list", and changing the type used with the operator new in the
  7. constructor.  You could use the type void* to make the List class
  8. more general.
  9.