home *** CD-ROM | disk | FTP | other *** search
- This is the function declaration for the class constructor.
- Notice that the function takes a single argument, "capacity".
- "capacity" is the maximum number of elements that can be stored in
- the array. The default "capacity" is 10.
- An initializer list is used to set the initial state of the
- object. "size" is initialized to zero, "free" to 0, and "pArray"
- to NULL. The constructor attempts to allocate an array of type
- "T". An exception is thrown if the memory allocation fails.
- Otherwise, "capacity" is assigned to "size" and "free".
-