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

  1. A template must have at least one argument.  Each argument
  2. specifies a parameterized type or a constant used within the
  3. template.  This example is the definition of the class template
  4. Months.  The argument "ID" is a parameterized type.  When a class
  5. is created from this template, a specific type is substituted for
  6. "ID".  For example, "ID" could be int to create a class in which
  7. "names" is an array of 12 integers; or "ID" could be char* to
  8. create a class in which "names" is an array of character strings.
  9.