home *** CD-ROM | disk | FTP | other *** search
- A template must have at least one argument. Each argument
- specifies a parameterized type or a constant used within the
- template. This example is the definition of the class template
- Months. The argument "ID" is a parameterized type. When a class
- is created from this template, a specific type is substituted for
- "ID". For example, "ID" could be int to create a class in which
- "names" is an array of 12 integers; or "ID" could be char* to
- create a class in which "names" is an array of character strings.
-