 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
By
replacing the constructor with:
|
|
|
|
list (int size=SIZE); //in prototype only
|
|
|
| • |
We
can have only one constructor act as either
|
|
|
the
default constructor (with the same size of an
|
|
array
as the previous example), or with a client-
|
|
|
specified
size
|
|
|
| • |
The
constructor would need to:
|
|
|
|
d_array
= new data [size];
|
|
|
|
size_of_array
= size;
|
|